A browser multiplayer game with bouncing balls.
Cliend side is written in TypeScript using Phaser game framework, and is based on parcel template by Ourcade.
It's using Colyseus game server, and can run on Colyseus Cloud Hosting under a free tier.
matter.js physics engine is used on both client and server sides.
- Node.js version v14.18.2
- macOS or Linux/Unix operating system
npm install
Start server:
npm run start-server
Start client:
npm run start
Open the following URL in your browser:
http://localhost:8000/
Monitor server and room states:
http://localhost:2567/colyseus/#/
npm run build
Upload the contents of ./dist/server
to Colyseus Arena or any other hosting of your choice.
Server application includes Express web server, and is serving the client web page automatically.
If you find this repo helpful in any way, please consider giving it a star.
Also, if you have any suggestions on how this project can be improved, please submit a PR or create an issue - I'd be forever grateful.