A Lua library that wraps LÖVE objects into classes.
LÖVE-class depends on vrld’s HUMP library. You need to have Class and Timer in _G before you require these classes.
There is no documentation at the moment.
- Color class for easy re-use of colours.
- SoundEffect class with built-in source management.
- Wraps most LÖVE objects:
- Image
- ParticleSystem
- Framebuffer
- Font
- ImageFont
- Quad
- Music
- String library extensions.
If your game folder is a git repository, using an up-to-date LÖVE-class is easy.
Just be in the root folder of your game’s source code, and issue the following command:
git submodule add git://github.com/TheLinx/loveclass.git [optional: where to put LÖVE-class]
If you just want to download the source code, use this command:
git clone git://github.com/TheLinx/loveclass.git
Then, just require loveclass
.
Make sure to call loveclass.update
in your love.update
!