This is a small template project to set up a Scala.js project using the Phaser3 framework for 2d HTML5 games.
A deployment can be seen at https://benkeks.github.io/scalajs-phaser-example/ .
To set up and build the project
npm install
npm run build
The first invocation of npm run build
will take quite some time and memory to build the Scala typing facades for Phaser3.
For development mode with incremental builds and clever reloading, use two terminals, one running Vite
npm run dev
and the other running sbt:
npm run dev-sbt