A simple boilerplate using Colyseus + PixiJS. It implements a simplistic version of the classical agar.io game.
This demo uses @colyseus/social
, that requires MongoDB to be installed on your machine. Alternatively, you can remove this line if you don't want to use it.
git clone https://github.com/endel/colyseus-pixijs-boilerplate.git
cd colyseus-pixijs-boilerplate
npm install
npm run dev
Open http://localhost:8080 in your browser.
├── nodemon.json
├── package.json
├── src
│ ├── client
│ │ ├── Application.ts
│ │ ├── index.html
│ │ └── index.ts
│ └── server
│ ├── index.ts
│ └── rooms
│ ├── ArenaRoom.ts
│ ├── Entity.ts
│ └── State.ts
├── tsconfig-client.json
├── tsconfig.json
└── webpack.config.js
- All frontend dependencies should be included as
devDependencies
onpackage.json
. - All backend dependencies should be included as
dependencies
onpackage.json
.
- Enter name before starting the game
- Re-spawn button after dead
- Leaderboard
MIT