Apostolique / Agar.io-bot

The aim of the project is to create a bot that can play Agar.io
MIT License
1.15k stars 1.92k forks source link

question from a new programmer #635

Open jimmy-changa opened 8 years ago

jimmy-changa commented 8 years ago

Hey! newb-lord jimmy-changa here! I was wondering how you get the pos. info for the different cells/ blob things? I'm trying to make a bot for a different game, www.spaceuncharted.com, but I cannot seem to find how the client receives all the visible ship and planet locations. I will not be creating a wall hack script, because that would be too cheaty for my liking.. The game is fairly tedious, and I figured a bot would be well suited for the basic fleet movement functions.

Apostolique commented 7 years ago

Sorry for late reply.

I don't know if you have that for your game, but for agar, gcommer made a website where he described the protocol:

http://agar.gcommer.com/index.php?title=Protocol

Originally though, I had to reverse engineer the game's obfuscated Javascript code in order to understand what everything did. Perhaps you can check your game's rendering part and figure out where the ships are drawn from, then try to backtrack to see which variables are used.