reference : https://github.com/misterpah/kha-EC
Warning. Bad story ahead.
I love luxeengine. It’s extremely flexible. Can’t deny it. I love it so much, I try to imitate the Entity Component System multiple times. Most of the time, it fails because I didn’t understand the concept.
Then i found base-entity-component-system for HaxeFlixel. The code itself is clean & easy to understand. The best thing is, it’s detached from HaxeFlixel. So i make an effort to port it to work with Kha.
Haxe Kha-EC
https://github.com/misterpah/kha-EC
Entity Component (EC) works as expected. I’m able to add health components, sprite component, and movement component to a player without any problem.
What i surprised with Kha-EC, it able to handle camera as an entity, not as a core feature. What a pleasant surprise!
I’m curious what other thing can be put as an entity.