Game Development Reference
In-Depth Information
Installing LÖVE
LÖVE works on desktops. You can install LÖVE by downloading the source and building the
binaries or downloading the prebuilt binaries. The source for LÖVE is hosted on bitbucket and can
Running LÖVE
Creating our first Hello world in LÖVE is similar to doing so in many other frameworks. We create a
folder—let's call it
Love_01
—and then create a text file called
main.lua
with the following code inside it:
print
statement from our code will be displayed to
main.lua
file and run it again to
11-2
.
function love.draw()
love.graphics.print('Hello World!', 400, 300)
end
Figure 11-2.
Hello World running in LÖVE