ayyo-wars
ayyo-wars copied to clipboard
Migrate to Phaser 3 Scenes API
The new version of Phaser has much better support for scenes.
Instead of using Behavior API for managing scenes ( messy and problematic ), we should transition to using the Phaser 3 scene API.
This should improve code for switching between game modes.
Pretty much got this working now. Headless version is currently crashing, but I suspect it will be a minor fix for scope.
Now whenever a Thing is created, it will be scoped within the scene that it's being called from. Things scope is no longer global, but a child property of current scene.