Here is a quick getting started... assuming you already installed Love on your machine.
1) With a working web browser, access and
leave this open/consult as you code:
https://love2d.org/wiki/Main_Page
The wiki has all information initially needed to properly use and understand the tools provided by Love. Use it!
2) Set up a project folder with a main.lua and an optional configuration conf.lua file
placed on it's root.
Usually, this is the main.lua file where I usually start working with:
Code: Select all
function love.load()
--Code that runs once at game startup
end
function love.update(dt)
--Game logic updates go here
end
function love.draw()
--Game drawing code goes here
end
You can find an example conf.lua
in the wiki.
3) Choose an IDE for programming your game.
There are several options here, from Notepad++ to Atom to Visual Studio. For starters, I'd seriously recommend using
Zerobrane Studio since it's easy to set up and code right away.
Other IDEs are also available, search around if you're unsure how to set these up.
4) Begin your programming adventures!
I'd start telling you to get used with everything first, so I'd start out trying to:
- Draw a Blue rectangle anywhere on the screen.
- Allowing the player to move such rectangle around using arrow keys.
- Loading a music and playing it.
- Drawing some text to the screen using a custom font.
After getting a bit more familiar with it, I'd attempt to:
- Make a Pong clone.
- Make a Snake clone.
- Make a
very simple space shooter.
---------------------------------------------------------------------------------------------------------------------
If you did all this, congratulations! Chances are you probably know at very least what you're doing, and you're probably more confident by now. Which also means you'll probably have a
better view of what you don't understand or want to exactly talk/ask about!
