This was developed using the Phaser 3 Framework and Parcel as the web application bundler.
Check out Phaser 3 Examples to see examples on how to leverage Phaser 3.
-
(Optional) It is highly recommended to use Node Version Manager (nvm) to install Node.js and npm.
-
Install Node.js and npm with nvm:
nvm install nodenvm use node
-
Install Parcel:
npm install -g parcel-bundler
-
Install dev dependencies needed to run Swing Soccer:
cd path/to/swing/soccer/reponpm install
npm run start- Open your browser to http:localhost:8000
This project uses Prettier, an opinionated code formatter.
-
The
.prettierrcfile will show you the selected configuration options. More informations about the format options can be found here. -
The
.prettierignorefile will show you which files and/or directories are ignored when Prettier runs formatting.
To check formatting without making changes locally: npm run prettier-check or npx prettier --check .
To apply the formatting changes locally: npm run prettier-write or npx prettier --write .
The selected compiler options for each project are set in the tsconfig.json file.
More informations about the available options can be found here.