ayyo-wars icon indicating copy to clipboard operation
ayyo-wars copied to clipboard

Migrate to Phaser 3 Scenes API

Open Marak opened this issue 5 years ago • 1 comments

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.

Marak avatar Apr 16 '21 18:04 Marak

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.

Marak avatar Apr 17 '21 14:04 Marak