Comments (6)
I think that's a good point.
We always developed games with the engine as a global variable for easy access.
Maybe we could introduce a flag on the entity, which marks it as toBeDeleted
on the next tick by the entity manager. Hm, But this could lead to annoying side effects on the next tick.
The thing is that we followed the paradigm that entities should be as stupid as possible. A simple class which is only designed to hold data (Components
) and should implement as few logic as possible.
I'll talk with @raffomania, since the entity then needs a reference to the engine, which is something we is something we tried to strictly avoid. But it's a point that it's really inconvenient, if the engine is not a global variable.
from lovetoys.
Hi @Nukesor, any progress on this?
Just adopted this library, its amazing!
from lovetoys.
To be honest, development has stalled quite a bit.
Both of us moved to other languages/technologies and we haven't properly worked on this library for a really long time.
I'm not sure if this feature will be added by us.
However, we would be happy to review and accept PR's or maybe even add new people to the organization!
from lovetoys.
@Nukesor Thanks for the reply. I think I am happy with my solution using the features already implemented in your lib.
I share your sentiment greatly. I really like Lua, but it's on a steady decline for a long time now. Once this game is done and is distributed on steam. I will most likely move to either Rust or C# for game development.
from lovetoys.
If you're looking for more full-fledged alternatives to love, I can greatly recommend godot :) It also supports C# if that's your thing
from lovetoys.
@raffomania Yeah I've had a brief look at it and followed this course on it on Udemy. https://www.udemy.com/course/godot/
Sadly the C# part was not mature enough to be finished in the course, so they left it opened on "todo".
This made me decide to switch to Monogame at the end.
Thanks for the suggestion. From what I have learned and used in Godot. Its really awesome!
from lovetoys.
Related Issues (20)
- Treating systems as objects does not make sense HOT 2
- Travis-CI caches project files HOT 4
- module 'src.namespace' not found HOT 7
- Engine refers to global Entity HOT 4
- Docs for adding/starting systems HOT 1
- Should fail when calling addSystem(system, 'derp')
- Adding multiple instances of a system doesnt always throw an error
- Strange bug adding components HOT 12
- Question: systems can only update or draw? HOT 2
- Error when initializing lovetoys HOT 2
- Docs outdated? Init code doesn't seem to work HOT 6
- Feature Request - System:excludes() HOT 6
- Entity:remove() / Entity:add() crashes when not initializing with globals
- what's the difference between allRequirements and singleRequirements HOT 1
- Error: lovetoys/init.lua:7: module 'src.namespace' not found: HOT 3
- The version on luarocks is missing `init.lua` HOT 4
- main.lua file of the lovetoys example game linke at readme file is broken HOT 3
- How do you manually create classes? HOT 2
- Can't make sample code work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovetoys.