Skip to content

sumitkukrejas/multiplayer-game

Repository files navigation

Online multiplayer game using webSockets

About this project

  • This is an online multi-player game similar to Agar.io.
  • Build with vanilla javascript to get the taste of how things were done in the old times without frameworks like react.
  • Using Express for the backend servers to bring down the complexity and player-server connectivity is handled using Socket.io.
  • The site is live and the website link is in the description of this repo, site will be deployed until the free tier runs out, so check it out.

To start up the game

  1. Initialize a git repo and clone this repo using

    git clone https://github.com/sumitkukrejas/multiplayer-game.git

  2. Set the environment variable (i.e. client and server urls present in public/socketStuff.js - line-1).

  3. cd multiplayer-game

  4. npm install

  5. node index.js to start the server.

  6. Enjoy your own multiplayer game.

Screenshots

Screenshot 2024-01-09 204305 Screenshot 2024-01-09 204417 photo

About

A game similar to Agar.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published