/game-server

a playground to test out networking features

Primary LanguageJavaScriptMIT LicenseMIT

Colyseus + PixiJS Donate on Patreon

A simple boilerplate using Colyseus + PixiJS. It implements a simplistic version of the classical agar.io game.

View live demo

Running locally

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.

Directory structure

├── 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 on package.json.
  • All backend dependencies should be included as dependencies on package.json.

TODO:

  • Enter name before starting the game
  • Re-spawn button after dead
  • Leaderboard

License

MIT