stefanmielke / libdragon-extensions

List of structs and functions to help on Libdragon development.
MIT License
6 stars 1 forks source link

Scene Graph #3

Open stefanmielke opened 1 year ago

stefanmielke commented 1 year ago

We need a easy way to create a scene graph, where entities with custom logic can be added and handled by the scene automatically (so you only need to implement the logic on the entity itself, not everything else).

An example of such system is the Actors on UE4/5.

The main functions it should have are:

After the base implementation, we should implement some basic entities that other implementations could use as a base, with examples being "2d Sprite" and "2d Character".

adamcate commented 1 year ago

Do we want to use C++ for this or try to keep it in the realm of C? Feels like it would be much easier with C++

stefanmielke commented 1 year ago

It would be easier with C++, but that would limit this to only be used by C++ on games.

We can go ahead with that (I don't think it's a problem for some parts requiring C++), but I think it would be nice to see if this could be done in C first.