A quick-start Phaser 3 template used by the Bodging Bear team
View Demo
·
Report Bug
·
Request Feature
In this repo you can find a template that is being used by the Bodging Bear team when starting new project.
Even though this template includes Bodging Bear specific code (like intro or credits) feel free to use it in your own project.
- Bodging Bear intro while loading
- Simple main menu
- Credits scene
- How to play scene
- Game scene
- Custom made utilities for quicker Phaser 3 development
- Phaser 3
- TypeScript
- Webpack 4
- Electron
- Love ❤️
To get a local copy up and running follow these simple steps.
You'll need to have the following programmes installed to run use template
Download and install appropriate version from https://nodejs.org/en/download
- Create a new repo from a template
- Clone the newly created repo
git clone https://github.com/bodgingbear/new-game
- Install NPM packages
npm install
- Run game locally
npm start
Command | Description |
---|---|
npm run start |
Build project and watch for changes, starts server on http://localhost:8080 |
npm run build |
Builds project in production mode (enables minification, outputs files to public folder) |
npm run lint:eslint |
Runs eslint on the codebase checking for code style errors |
npm run lint:tsc |
Runs TypeScript checks |
npm run lint |
Combines lint:eslint and lint:tsc |
npm run electron:dev |
Runs Electron in the development mode |
npm run electron:dist |
Builds the Electron version of the app. Outputs builds for MacOS and Windows |
Distributed under the Creative Commons Attribution-NonCommercial 4.0 International License.
See https://creativecommons.org/licenses/by-nc/4.0 for a human-readable summary of it and LICENSE.md
for full license text.
If you wish to commercially use your game that was created using this template, drop us a message at [email protected].
Bartek (@bibix1999) and Kacper (@pietrzakacper) – [email protected]
Project Link: https://github.com/bodgingbear/phaser3-template