combomash / engine

TypeScript Algorithmic Media Engine
https://www.npmjs.com/package/@combomash/engine
ISC License
0 stars 0 forks source link

component scripts #17

Open owmo-dev opened 3 months ago

owmo-dev commented 3 months ago

Logging an Issue to consider implementing a similar structure as Unity's GameObject and Component Scripts structure. I like how the current Entity Manager executes top-level functions if they are found so I'd likely keep that for flexibility, but add in an optional array of Components to also be executed within each Entity. This would need some kind of Component interface the scripts are meant to implement (or maybe a class they inherit from for clarity).

Consider improving the UX of using everything as part of this issue.