Scenes > Boot Scene

The initial scene. Responsible for preloading all game assets, disabling the context menu, setting up the responsive canvas resizer, then handing off to MenuScene.

preload

Loads all game assets by iterating the ASSETS constants. Each asset is loaded as a spritesheet using its configured dimensions.

create

Disables the right-click context menu, sets up the canvas resizer, then transitions to MenuScene.

#generateColorDots

Generates a spritesheet texture with one 100x100 dot per player color. Frames are ordered to match the index of each key in SETTINGS.COLOR.OPTIONS.

#setupResizer

Attaches a ResizeObserver to the canvas container so the Phaser scale manager refreshes whenever the container dimensions change.




© Gamesanova 2026