Difference between revisions of "Lovetoys"

m (Adding keyword.)
(remove code example as it keeps getting outdated)
Line 11: Line 11:
 
Though we have not reached version 1.0 yet, the software is tested, used in multiple games and definitely stable. If you find any bugs please create an issue and report them. Or just create a pull request :).
 
Though we have not reached version 1.0 yet, the software is tested, used in multiple games and definitely stable. If you find any bugs please create an issue and report them. Or just create a pull request :).
  
 
+
Grab it on [https://github.com/Lovetoys/lovetoys Github] and give it a try!
A simple example for implementation:
 
 
 
<source lang="lua">
 
-- Importing lovetoys
 
require("lovetoys/lovetoys")
 
 
 
function love.load()
 
    engine = Engine()
 
    world = love.physics.newWorld(0, 9.81*80, true)
 
    world:setCallbacks(beginContact, endContact)
 
    eventmanager = EventManager()
 
end
 
 
 
function love.update(dt)
 
    -- Engine update function
 
    engine:update(dt)
 
    world:update(dt)
 
end
 
 
 
function love.draw()
 
    -- Engine draw function
 
    engine:draw()
 
end
 
 
 
function love.keypressed(key, isrepeat)
 
    eventmanager:fireEvent(KeyPressed(key, isrepeat))
 
end
 
 
 
function love.mousepressed(x, y, button)
 
    eventmanager:fireEvent(MousePressed(x, y, button))
 
end
 
 
 
</source>
 
<br/>
 
<br/>
 
Grab it and give it a try on [https://github.com/Lovetoys/lovetoys Github].
 
  
 
If you want to see a proper way of implementation and some  examples, have a look at our [https://github.com/Lovetoys/examples Example-project] or our [https://github.com/Lovetoys/Lovetoys-games Games].
 
If you want to see a proper way of implementation and some  examples, have a look at our [https://github.com/Lovetoys/examples Example-project] or our [https://github.com/Lovetoys/Lovetoys-games Games].

Revision as of 10:05, 26 January 2017




Lovetoys is an Entity Component System framework for game development with lua. Originally written for the LÖVE 2D game engine it is now compatible with pretty much any game that uses lua! It is loosely based on Richard Lords Introduction to ECS's. If you don't have any idea what this entity component stuff is all about, click that link and give it a read! It's totally worth it!

Lovetoys is a full-featured game development framework, not only providing the core parts like Entity, Component and System classes but also containing a Publish-Subscribe messaging system as well as a Scene Graph, enabling you to build even complex games easily and in a structured way.

Though we have not reached version 1.0 yet, the software is tested, used in multiple games and definitely stable. If you find any bugs please create an issue and report them. Or just create a pull request :).

Grab it on Github and give it a try!

If you want to see a proper way of implementation and some examples, have a look at our Example-project or our Games.