Documentation: http://lquery.scriptumplus.ru
Downloads: https://github.com/scriptum/lQuery/downloads
Key features:
integrated scene graph manager - all objects merged into one, easy-to-manipulate scene graph.
entity-based - all in the game are entities: menu, widgets, objects, mouse, players. You can specify entity's behavior. Example:
Code: Select all
circle = Entity:new(screen)
:move(400,300)
:draw(function(s) --function that displays entity
G.circle("fill", s.x, s.y, s.R, 2*s.R)
end)
Code: Select all
mouse = Entity:new(screen):draw(function(s) --unusual type of entity: mouse cursor position, useful for demonstrations
love.mouse.setPosition( s.x, s.y )
end)
animate anything - small and powerful animation library, multi-queue animation. Example:
Code: Select all
circle:animate({x=100, y=100}) -- move circle from current position to 100, 100
Code: Select all
mouse:animate({x=100, y=100}) -- move mouse cursor from current position to 100, 100
Code: Select all
player:animate({health=100}) -- increase player's health (you can animate any parameter of the entity)
Code: Select all
box = Entity:new():move(10,10):animate({x=100}):animate({y=100})
Code: Select all
circle:click(function()
--some action here
end)
Small demonstration: animations, events (hover mouse on circle, click on circle)
Repository:
http://github.com/scriptum/lQuery