Difference between revisions of "Love Game Engine"
(→Getting Started) |
(→Download) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
[https://love2d.org/ love2d.org] | [https://love2d.org/ love2d.org] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Love for Android== | ==Love for Android== | ||
Line 68: | Line 60: | ||
[[Love - Moving an object]] | [[Love - Moving an object]] | ||
+ | |||
+ | [[Love - Animation]] | ||
+ | |||
+ | [[Love - Creating a Map]] | ||
+ | |||
+ | [[Love - Using a TMX Map]] | ||
+ | |||
+ | [[Love - Lemmings Movement]] | ||
+ | |||
+ | [[Love - Bomberman Concept]] | ||
+ | |||
+ | [[Love - GUI]] | ||
==External== | ==External== | ||
===Love Main Site=== | ===Love Main Site=== | ||
− | Here is the | + | Here is the link for the Love Wiki: |
[https://love2d.org/wiki/Main_Page Love Wiki Site] | [https://love2d.org/wiki/Main_Page Love Wiki Site] | ||
− | + | Here is the link for just the tutorials on the Love wiki site: | |
− | [ | + | [https://love2d.org/w/index.php?title=Special:Ask&offset=0&limit=50&q=%5B%5BCategory%3ATutorials%5D%5D+OR+%5B%5BTutorial%3A%2B%5D%5D&p=mainlabel%3DTitle%2Fformat%3Dbroadtable&po=%3F%3DTitle%23%0A%3FLOVE+Version%0A%3FDescription%0A Love tutorials] |
− | + | ===Love Github Documentation=== | |
+ | [https://love2d-community.github.io/love-api/ API Documentation] | ||
+ | |||
+ | [http://love2d-community.github.io/LOVE-Example-Browser/ Browser for Example Code] | ||
− | [https://love2d. | + | [https://love2d-community.github.io/love2d-book Getting Started Book] |
===Awesome Love2d=== | ===Awesome Love2d=== |
Latest revision as of 07:27, 13 July 2023
Contents
Download
Go to the main site for the Love engine:
Love for Android
You can even get 'Love for Android' from the Google Play store. This will install the Love engine, you will then need to have a text editor in order to create the code:
Getting Started
The Love game engine uses Lua, so make sure you catch up and learn the language. The link below is to the Lua wiki section, it covers all of the basics of Lua:
Making a Game
To make a minimal game:
- Create a folder for your game
- Open up your favorite text editor. Sublime Text is a pretty good one for all operating systems, and it has Lua support built in.
- Create a new file in the folder you just created, and name it main.lua.
- Put the following code in the 'main.lua' file, and save it:
function love.load()
-- use to set up your game
end
function love.update(dt)
-- dt is the elapsed time since last call
end
function love.draw()
love.graphics.print("Hello World", 400, 300)
end
You can obviously add more functions, classes, variables to make your own game. But the key sections are 'love.load()', 'love.update(dt)', and 'love.draw()'.
Running Games
Within Windows software such as ZeroBrane Studio, Sublime Text 2, Notepad++, and SciTE allow you to launch the game from within their code editors.
Otherwise, the easiest way to run the game is to drag the folder onto either love.exe or a shortcut to love.exe. Remember to drag the folder containing main.lua, and not main.lua itself.
You can create a shortcut to do this; simply make a shortcut to love.exe, right-click on it and select 'Send to Destop' to create a shortcut:
On Windows, there is a special command-line option which will attach a console to the window, allowing you to see the result of print calls. So right click your shortcut, choose 'properties', and edit the target to include '--console' eg:
"C:\Program Files\LOVE\love.exe" --console
Tutorials
TRC
External
Love Main Site
Here is the link for the Love Wiki:
Here is the link for just the tutorials on the Love wiki site:
Love Github Documentation
Awesome Love2d
Learn 2 Love
Lua Breakout/Arkanoid
Simple Game Tutorials
Harvard CS50
YouTube playlist for this course: Harvard CS50 Games Development Tutorials
GitHub for this course: GitHub for these tutorials
Using Tiled in Love
You Tube
You Tube playlists:
Game Development in Love2D [Beginner Series!]
Lets make a platformer in love2d
Game Development for Complete Beginners Tutorial Series (Using Lua and Love2d)