This is a clone of the popular phaser-project-template, which includes the latest enable3d.io version.
# Clone this repository $ git clone --depth 1 https://github.com/enable3d/enable3d-phaser-project-template.git enable3d-game # Go into the repository $ cd enable3d-game # Install dependencies $ npm install # Start the local development server (on port 8080) $ npm start # Ready for production? # Build the production ready code to the /dist folder $ npm run buildYou want to use JavaScript instead of TypeScript?
- Add
"checkJs": false,to tsconfig.json - Change the extension of all game files in /src/scripts from
.tsto.js(exceptgame.ts).