jsgoller1 / sprawl

2D Game Engine
GNU General Public License v3.0
0 stars 0 forks source link

GameActions and Message bus #40

Open jsgoller1 opened 1 year ago

jsgoller1 commented 1 year ago

Begrudgingly, we are probably moving towards a message bus architecture. We probably want to allow users to define their own GameActions, and then these will be dispatched to each game object or system. Objects should then have handlers for what to do on each message, such as onLoop(), onMessage(), etc.