Share your repls and programming experiences

← Back to all posts
Agar.io
vedprad1 (815)

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!

Commentshotnewtop
spybrave (342)

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

vedprad1 (815)

@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 (342)

@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 (815)

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 (815)

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

vedprad1 (815)

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

vedprad1 (815)

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

vedprad1 (815)

@vedprad1 Someone please vote! I beg you!

vedprad1 (815)

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

vedprad1 (815)

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

B_W_C_TESTER (0)

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

vedprad1 (815)

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

JSer (1160)

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

vedprad1 (815)

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

vedprad1 (815)

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 (815)

Make sure to expand to full screen for best performance!

STave_Master605 (1)

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 (815)

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

IbraheemRodrigues (79)

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 (815)

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

Boappy (1)

What's the goal of the game?

timmy_i_chen (1003)

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

ReplicatorsLieo (0)

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

sandrew588 (0)

cool give me info!

WrenMcclelland (0)

help it stoped work

Boappy (1)

how do you start?

vedprad1 (815)

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

JSer (1160)

Good concept but the graphics is not good :(

EstonianMapping (0)

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 (0)

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 (17)

The end could be a little more satisfying.

STave_Master605 (1)


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 (815)

@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).