darthdeus / comfy

Comfy is a fun 2D game engine built in Rust. It's designed to be opinionated, productive, and easy to use.

Home Page:https://comfyengine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

World inspector for hecs

nuts-rice opened this issue · comments

Would it be a good idea to have a egui window that keeps track of entities and their associated components within some of the more complex demos like perspective camera and ldtk?
Perhaps not as simple and clean as a "comfy" straightforward demo, but it could serve as a debugging tool going forward with more dense level and game design.

I'm not sure if this is possible to do in general without some kind of reflection API. I vaguely remember discussing this some time ago and being told that the only way you can do this is if you register the components explicitly.

Which could definitely work, but it makes it a bit more tricky to implement.

I'd say a good way to start with this would be to just make a prototype that does this. Since comfy doesn't hide any of its internals I don't think there's any reason why this couldn't be a separate crate.