Phaser3 Base Game framework (it's different with phaser 2, because phaser3 drop Pixi.JS for rendering)
PreloaderScene > LoaderScene > MainScene
- PreloaderScene (only for loading assets only)
- LoaderScene (put your assets load here instead of PreloaderScene)
- Install node.js
- Install web server
- Install node dependencies locally by running
$npm install
- The script resides inside
"src"
folder. - The game need to be build, each time modification is made. At least build into development mode:
- For
vscode
user, you just need to run commandCTRL+SHIFT+B
. Selectnpm:build
->Continue without scanning the task output
- For non
vscode
users you need to run command$npm run-script build
- For