giovinazzo-kevin / Fiero

1 stars 0 forks source link

Separate concerns between ActionSystem, GameplayScene and Ergo Scripts #26

Open giovinazzo-kevin opened 7 months ago

giovinazzo-kevin commented 7 months ago

Right now a bunch of events are handled fully in the GameplayScene, while some are handled partially by the ActionSystem. It's a bit unclear as to who does what.

On paper it's fine because the ActionSystem has two responsibilities:

The GameplayScene should mostly handle these events in order to communicate with the other game systems, so stuff like:

Finally, scripts are where more specific event handlers are implemented. For example the script that implements the behavior for bombs will specify its own ActorTurnStarted handler to manage ticking and exploding.

The refactor needs to separate these concerns more clearly essentially.