---
title: "Discussion on \"Socket-Agar! -coding an online multiplayer game from scratch\" | Hashnode"
description: "Discussion on \"Socket-Agar! -coding an online multiplayer game from scratch\". A real-time multiplayer online game inspired by agar.io and built using socket.io ( with bots! )"
url: "https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Socket-Agar! -coding an online multiplayer game from scratch](https://aliaman.hashnode.dev/socket-agar-coding-an-online-multiplayer-game-from-scratch?utm_source=hashnode&utm_medium=feed)

A real-time multiplayer online game inspired by agar.io and built using socket.io ( with bots! )

Mar 31, 2021 · 8 min read · aliaman.hashnode.dev  
Updated Apr 1, 2021  
Read the article

-   [#game-development](https://hashnode.com/tag/game-development)
-   [#socketio](https://hashnode.com/tag/socketio)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hacksbitspilani](https://hashnode.com/tag/hacksbitspilani)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[AMAN ALI](https://hashnode.com/@aliaman)

@aliaman · Ujjain, MP, India

  
[View profile](https://hashnode.com/@aliaman)

Computer Science Undergrad at BITS Pilani, India

I am a 3rd year student studying Computer Science and Physics at BITS Pilani, India. I'm interested in Full-stack web development and block-chain tech.

## Responses 7

Markdown supported · ⌘↵ to post

[Pawel Wolowec](https://hashnode.com/@PawelWol)

[Sep 29, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6154462c9c8bfd08f5ba8d4f)

Looks smart & juicy. Actually, I also try to do a game but without multiplayer. I am a big fun of free pl games ( [examples](https://kasynopl.com/darmowe-gry-hazardowe-online/) ) but it is only my hobby. I am glad that you pointed The BackEnd lists... It is time to discover it for my own purpose.

[Devansh Agarwal](https://hashnode.com/@devanshcodes)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/606732df7f07b6328b5dd2c2)

Amazing work, liked how you used hashmaps with socketIds as keys for fetching that user's data object in O(1) time!

[AMAN ALI](https://hashnode.com/@aliaman)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/606732df7f07b6328b5dd2c2#reply-606733f57f07b6328b5dd2d9)

Thanks. I needed to run as lean as possible on the server-side!

[Maik Ro](https://hashnode.com/@maikroservice)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/60670857fad5042228d3705a)

I just got eaten - love it :D

[AMAN ALI](https://hashnode.com/@aliaman)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/60670857fad5042228d3705a#reply-60670f40602838220343ec76)

😄😄 Thanks for trying it out!

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6066b2d6602838220343e6a0)

Sweet Project [AMAN ALI](https://hashnode.com/@aliaman). Very well-written article and nice to see you use object-oriented approach by using classes

[AMAN ALI](https://hashnode.com/@aliaman)

[Apr 2, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6066b2d6602838220343e6a0#reply-6066b4c2fad5042228d36ac5)

Thanks a lot! I found out that using classes makes the code much more maintainable if I ever want to update the app (many more features on the way!)

[Mustafa Panjiwala](https://hashnode.com/@Butterchicken)

[Mar 31, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/60650354a46a8b155864e67c)

That's really fun to play.

[AMAN ALI](https://hashnode.com/@aliaman)

[Apr 1, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/60650354a46a8b155864e67c#reply-60656751c95fe61e08d40832)

Thank you for trying it out! climb the online leaderboards!

[SATYAM PANDEY](https://hashnode.com/@SatyPro)

[Mar 31, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6064d704574933157db93522)

The simple approach to solving a complex issue is pretty damn cool 👍🏼

[AMAN ALI](https://hashnode.com/@aliaman)

[Apr 1, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6064d704574933157db93522#reply-60656435574933157db93c73)

Thanks! I tried to make the logic as intuitive as possible!

[SATYAM PANDEY](https://hashnode.com/@SatyPro)

[Mar 31, 2021](https://hashnode.com/posts/socket-agar-coding-an-online-multiplayer-game-from-scratch/6064b88aa46a8b155864e163/comment/6064d4a8574933157db93508)

Amazing bruh!!!
