Sangrene / colyseus-pixijs-boilerplate

Colyseus 0.11.x + PixiJS Boilerplate (Agar.io simplistic adaptation)

Home Page:https://colyseus-pixijs-boilerplate.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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.

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

About

Colyseus 0.11.x + PixiJS Boilerplate (Agar.io simplistic adaptation)

https://colyseus-pixijs-boilerplate.herokuapp.com/

License:MIT License


Languages

Language:TypeScript 87.0%Language:JavaScript 7.5%Language:HTML 5.4%