Try Love in your Browser
Posted: Thu Mar 11, 2010 8:48 pm
I always taught that making flash games with Love would be awesome.
Then i saw this:
http://code.google.com/p/lua-alchemy/
And i knew what to do. 8-)
This is just an proof of concept!
It might be too slow for real games.
Lua Alchemy is still alpha software and they mean alpha!
Can i make standalone swf games from this?
Yes you could but would be a bit work and you would have to recompile it.
Functions currently (more or less) available:
Known Bugs:
- love.graphics.print:
rotation takes no effect
- love.graphics.draw:
scaling works with absolute pixel (this might be a future)
- love.graphics.newImages behave like audio sources since 0.6.1 so you have to load a file multiple time to display it more than once
- it sometimes fails without giving any error message
( thats mostly a bug of Alchemy itself)
Play!
How to compile:
Download Flex SDK:
http://opensource.adobe.com/wiki/displa ... k/Flex+SDK
Download lua-alchemy.swc
http://lua-alchemy.googlecode.com/files ... -v0_2a.swc
put lua-alchemy.swc in /frameworks/libs/ of your Flex folder
change to the trylove src folder
do:
Then i saw this:
http://code.google.com/p/lua-alchemy/
And i knew what to do. 8-)
This is just an proof of concept!
It might be too slow for real games.
Lua Alchemy is still alpha software and they mean alpha!
Can i make standalone swf games from this?
Yes you could but would be a bit work and you would have to recompile it.
Functions currently (more or less) available:
Code: Select all
love.graphics.setFont(size)
love.graphics.setColor(red,green,blue)
love.graphics.setBackgroundColor(red, green, blue)
love.graphics.newImage(source)
love.graphics.draw(source,x,y,rotation,sx,sy)
love.graphics.print(text,x,y)
love.graphics.printf(text,x,y,limit,align)
love.graphics.rectangle(mode,x,y,width,height)
love.graphics.getColor()
love.graphics.getWidth()
love.graphics.getHeight()
love.mouse.getPosition()
love.mouse.getX()
love.mouse.getY()
love.mouse.setVisible(visible)
love.keyboard.isDown(key)
love.timer.getMicroTime()
love.timer.getTime()
love.timer.sleep(time)
love.physics.newWorld(xg,yg,sleep)
love.physics.newBody(world,x,y,type)
love.physics.newCircleShape(body,radius)
love.physics.newRectangleShape(body,w,h)
love.physics.newPolygonShape(body)
love.physics.newFixture(body,shape,density)
love.physics.newMouseJoint()
love.physics.newDistanceJoint(body1,body2,x1,y1,x2,y2)
love.physics.newGearJoint(body1,body2,ratio)
love.physics.newPulleyJoint(body1,body2,gx1,gy1,gx2,gy2,x1,y1,x2,y2,ratio)
love.physics.newRevoluteJoint(body1, body2, x, y )
Known Bugs:
- love.graphics.print:
rotation takes no effect
- love.graphics.draw:
scaling works with absolute pixel (this might be a future)
- love.graphics.newImages behave like audio sources since 0.6.1 so you have to load a file multiple time to display it more than once
- it sometimes fails without giving any error message
( thats mostly a bug of Alchemy itself)
Play!
How to compile:
Download Flex SDK:
http://opensource.adobe.com/wiki/displa ... k/Flex+SDK
Download lua-alchemy.swc
http://lua-alchemy.googlecode.com/files ... -v0_2a.swc
put lua-alchemy.swc in /frameworks/libs/ of your Flex folder
change to the trylove src folder
do:
Code: Select all
mxmlc LuaAlchemyDemo.mxml -target-player=10.0.0