Difference between revisions of "Lovetoys"

m (Adding keyword.)
(Updated link to Richard Lords intro to ECS)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#set:Name=Lovetoys}}
+
'''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 [https://www.richardlord.net/blog/ecs/what-is-an-entity-framework.html 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!
{{#set:LOVE Version=Any}}
 
{{#set:Description= It's a full-featured Entity-Component-System framework for making games with lua}}
 
{{#set:Keyword=Framework}}
 
 
 
 
 
'''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 [http://www.richardlord.net/blog/what-is-an-entity-framework 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.
 
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.
Line 11: Line 5:
 
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].
  
  
 +
{{#set:Name=ECS Lovetoys}}
 +
{{#set:LOVE Version=Any}}
 +
{{#set:Description= It's a full-featured Entity-Component-System framework for making games with LUA. The original and only.}}
 +
{{#set:Keyword=ECS}}
 
[[Category:Libraries]]
 
[[Category:Libraries]]
 +
== Other Languages ==
 +
{{i18n|Lovetoys}}

Latest revision as of 17:10, 30 November 2022

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.

Other Languages