Skip to content

Added Scale import for use in game config.#5

Open
emilje wants to merge 1 commit into
phaserjs:mainfrom
emilje:main
Open

Added Scale import for use in game config.#5
emilje wants to merge 1 commit into
phaserjs:mainfrom
emilje:main

Conversation

@emilje
Copy link
Copy Markdown

@emilje emilje commented Apr 23, 2026

main.js still used Phaser.Scale instead of named imports. Added Scale and replaced usage.

Uncaught ReferenceError: Phaser is not defined at main.js:17:15


Note

Low Risk
Low risk: a small import/reference fix in the Phaser game bootstrap that only affects scaling configuration and resolves a runtime Phaser is not defined error.

Overview
Fixes the Phaser bootstrap to stop referencing the global Phaser object by importing Scale from phaser and using Scale.FIT/Scale.CENTER_BOTH in src/game/main.js game config.

Reviewed by Cursor Bugbot for commit fd4159a. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant