This basic jump 'n' run game is based on the TypeScript specific fork phaser3-typescript-parcel-template. It extends Phaser's game tutorial and took some ideas from the tutorial series of ourcade for the basic client and server setup.
You'll need Node.js, npm, and Parcel installed.
It is highly recommended to use Node Version Manager (nvm) to install Node.js and npm.
For Windows users there is Node Version Manager for Windows.
Install Node.js and npm
with nvm
:
nvm install node
nvm use node
Replace 'node' with 'latest' for nvm-windows
.
Then install Parcel:
npm install -g parcel-bundler
Clone this repository to your local machine:
git clone https://github.com/b3nk4n/phaser3-colyseus-jump-n-run.git
Then go into your new project folder and install dependencies:
cd phaser3-colyseus-jump-n-run
npm install
Start development server:
npm run server
And finally the clients:
npm run client
To create a production build:
npm run build
Production files will be placed in the dist
folder. Then upload those files to a web server.