Share your repls and programming experiences

← Back to all posts
Agar.io
vedprad1

Note: This is based off of the game agar.io.
Try to get as many food pieces as possible so you can defeat the other player! This is a local multiplayer game, which the means the opponent has to be using the same keyboard.

Red Square: Use WASD or Red Buttons.

Blue Square: Use arrows or Blue Buttons.

Good Luck and make sure to vote this! Also, this has been posted under the share topic at: https://repl.it/talk/share/Agario/5511.

This game has gotten a first place tie in the repl.it multiplayer game challenge!

Voters
LoganLoftus
TatianaAlsina
CharlesUndesto
ABCHHOKER
OnurArdal
Wilke000
PranavMucharla
erifAktu
TaylrBell
VedangPradhan
Comments
hotnewtop
spybrave

You can't defeat the one who has the first bite.////////////////////Nice game!!

vedprad1

@spybrave To counter what you are saying, I was playing against my mom, and I got the first 3 bites, but the she got 5 after, so she won the game.

spybrave

@vedprad1 Well then you need to build up your game playing skills :p
i played it many times with my friends lost only the 1st i played :) #imtruegamer

vedprad1

The challenge is coming to an end. If you haven’t voted, you have less than 1 hour and 30 minutes left to vote, and for those who have voted for this project, I would like to thank you for all the great feedback and support you provide.

vedprad1

@vedprad1 12 minutes to go!

vedprad1

@vedprad1 10 minutes left and we’re still at the top!

vedprad1

@vedprad1 7 minutes are still taking a long time, and the suspense is building!

vedprad1

@vedprad1 5 minutes to go, and the 2nd place is just 1 vote under us!

vedprad1

@vedprad1 No! they got a vote!

vedprad1

@vedprad1 Someone please vote! I beg you!

vedprad1

@vedprad1 1 minutes left! Please be the change you want to see in the world.

vedprad1

@vedprad1 Uggh! Time’s up, and we’re tied with 3D shooter. What happens now?

B_W_C_TESTER

@vedprad1 No!! Come on! We were so close!

vedprad1

@vedprad1 No wait! Someone just upvoted me, but the timer was already done, so... does that count?

JSer

@vedprad1 Hey, the guy who voted u cancelled his vote and upvoted me, but tbh I think this should be a tie

vedprad1

@JSer I actually agree. Since they were voting after the timer ended, their vote shoukdn’t be counted.

vedprad1

NEW UPDATE: This website now can be used with touchscreen! Just click the buttons and your square will move without the need of a keyboard!

vedprad1

Make sure to expand to full screen for best performance!

STave_Master605

I found that there is no collision logic with the edges of the map. This somewhat detracts from the feasibility of the game's limited-area idea. Perhaps a slightly bigger map with enforced barriers?

vedprad1

@STave_Master605 Thanks for the feedback! The map is now bigger and players cannot pass its boundaries!

IbraheemRodrigues

Nice concept, however I found the following bug - if one player makes his way into the other players corner and eats the other, the other then respawns in that corner again, and so is eaten and so respawns and is eaten and this repeats ad infinitum, making the game freeze. Maybe have the player respawn in a random location each time?

vedprad1

@IbraheemRodrigues Thanks for the feedback! It know places the defeated square at a random location if the opponent is at its natural spawn location.

[deleted]

What's the goal of the game?

LEOPUVILLAND1

haha, cool!

timmy_i_chen

@vedprad1 I sent you an email - did you receive it?

ReplicatorsLieo

found a bug after 2 minutes playing. if both squares have the same size they can't eat each other

XaviarRehu

hi

sandrew588

cool give me info!

WrenMcclelland

help it stoped work

wilsonxie

hi

[deleted]

how do you start?

Bloxy_Cola

@Boappy CLICK RUN

vedprad1

@Boappy Just start by clicking any of the arrow/WASD keys to move your character or use the buttons.

JSer

Good concept but the graphics is not good :(

EstonianMapping

For the blue piece, if you eat it 3 times, it will turn red until you eat it for a fourth time. Just wanted to tell ya ^^

Tryna_BB

It'd be nice if the speed of the larger square is reduced (or that of the smaller is increased) for a better experience.

Reader8765

The end could be a little more satisfying.

STave_Master605

https://storage.googleapis.com/replit/images/1532961014946_93c343c6da2cb133933dd44328a18bd6.pn
Another issue: if the players avoid each other by one of them exiting the map, then it is possible for the other to grow infinitely large. I suggest some sort of growth limit imposed on the players, and a food spawning halt if such an issue occurs.

vedprad1

@STave_Master605 There is now a limit to the size of your piece (300px). If both pieces reach the max limit, their sizes reset to their original size (30px).