Lua 2d game engine.
Posted: 13 Jul 2010, 02:24
Just learned how to program widgets in spring?
Wanna make something interesting with spring-lua simmiliar syntax?
Or just tired making gadgets/widgets only for spring
and wanna make something different relayed to game making?
Introducing LÖVE.
http://love2d.org/
Well guys, i'm sorry for so Shop-on-the-couch starting of topic but seriously :D this engine can give you some advantage in lua, and can help you make some games.
Only minor problem i seen comparing with spring....*sigh* Again in game maker style there is Y axis going from top to bottom.
This feature dissapoints your brain again just after you re-learned it from using spring widget work-around stuff.
Anyway its great engine that's running smoothly - graphic's moving doesn't looks like stiffy, there is very adequate fps (210~ or so even with loads of particle systems), good, simple system of programing and speed debugging of your code.
Uh, there is small example of program that loads image of cookie and when lmb pressed cookie follows mousecursor
main.lua
Nothing difficult at all. LÖVE also haves this type of license
http://www.opensource.org/licenses/zlib-license.php
which grants permission to makin' money from it.





http://love2d.org/
Well guys, i'm sorry for so Shop-on-the-couch starting of topic but seriously :D this engine can give you some advantage in lua, and can help you make some games.
Only minor problem i seen comparing with spring....*sigh* Again in game maker style there is Y axis going from top to bottom.
Code: Select all
|
|
--------|-------->x
|
|
V
Y
Anyway its great engine that's running smoothly - graphic's moving doesn't looks like stiffy, there is very adequate fps (210~ or so even with loads of particle systems), good, simple system of programing and speed debugging of your code.
Uh, there is small example of program that loads image of cookie and when lmb pressed cookie follows mousecursor
main.lua
Code: Select all
function love.load()
image = love.graphics.newImage("cake.png")
love.graphics.setBackgroundColor(255,255,255)
cakex=15
cakey=15
correctx=50
moving=false
end
function love.update(dt)
if moving==true then
cakex=love.mouse.getX( )-correctx
cakey=love.mouse.getY()-50
end
end
function love.mousepressed(x, y, button)
if button == 'l' then
moving=true
end
end
function love.mousereleased(x, y, button)
if button == 'l' then
moving=false
end
end
function love.keypressed(key, unicode)
if key == 'a' then
correctx=correctx+1
end
if key == 's' then
correctx=correctx-1
end
end
function love.draw()
love.graphics.draw(image, cakex, cakey)
end
http://www.opensource.org/licenses/zlib-license.php
which grants permission to makin' money from it.