jakeklassen / ecs

TypeScript entity component system.
https://ecs-examples.netlify.app/
MIT License
49 stars 2 forks source link

Events #20

Open jakeklassen opened 5 years ago

jakeklassen commented 5 years ago

TODO

jakeklassen commented 5 years ago

https://github.com/pietile/pietile-eventemitter looks like a sensible event emitter

dezashibi commented 5 months ago

I think one solution might be to offer Event integrations, although what I'm going to say might be different than what you've planned for this part but it worths to be mentioned, what I think might be good is like imagine I've planned to use this library with Phaser or Babylonjs, both of these has their own Event system or I might event want to use a pub/sub store like Svelte stores as an example to handle events. so can forcing a predefined event system be a redundant task? or not, I don't know what you have in mind but to me as I really am into this library, I would use Babylonjs or Phaser's builtin event emitter system.

let's discuss this to see if this works we can create integrations for different popular game libraries or a custom made (if that's what some user might want).

What do you think?