Note: this implementation is slightly different from the implementation in the love 0.9.x Android and iOS ports! Added love.touchpressed(id, x, y), love.touchmoved(id, x, y, dx, dy), and love.touchreleased(id, x, y, dx, dy). id is a unique identifier for the touch press that persists until love.touchreleased. After that it is no longer unique. x and y are the coordinates of the touch event in pixels within the window. dx and dy are the amount in pixels that the touch has moved since the last event. Added love.touch.getTouchCount and love.touch.getTouch(index). love.touch.getTouch takes an index (not the same as an id. indices are not stable and don't correspond to a unique touch press.) It returns the id of the touch and its current x and y coordinates in pixels. --HG-- branch : minor
LÖVE is an awesome framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X and Linux.
Documentation
We use our wiki for documentation. If you need further help, feel free to ask on our forums, and last but not least there's the irc channel #love on OFTC.
Compilation
###Windows Follow the instructions at the megasource repository page.
###*nix
Run platform/unix/automagic from the repository root, then run ./configure and make.
$ platform/unix/automagic
$ ./configure
$ make
###Mac OS X
Download the required frameworks from here and place them in /Library/Frameworks/.
Then use the Xcode project found at platform/macosx/love.xcodeproj.
Repository information
We use the 'default' branch for development, and therefore it should not be considered stable. Also used is the 'minor' branch, which is used for features in the next minor version and it is not our development target (which would be the next revision - version numbers are formatted major.minor.revision.)
We tag all our releases (since we started using mercurial), and have binary downloads available for them.
Experimental changes are developed in the separate love-experiments repository.
Builds
Releases are found in the 'downloads' section on bitbucket, are linked on the site, and there's a ppa for ubuntu, ppa:bartbes/love-stable.
There are also unstable/nightly builds:
- Most can be found here.
- For ubuntu linux they are in ppa:bartbes/love-unstable
- For arch linux there's love-hg in the AUR.
Dependencies
- SDL2
- OpenGL
- OpenAL
- Lua / LuaJIT / LLVM-lua
- DevIL with MNG and TIFF
- FreeType
- PhysicsFS
- ModPlug
- mpg123
- Vorbisfile