Apostolique / AposFeedingBot

This is an Agar bot designed to blatantly cheat with an army of feeding bots.
22 stars 11 forks source link

How to get coordinates #14

Closed agarioBotDev closed 8 years ago

agarioBotDev commented 8 years ago

Hey apos !:-)

where is the position (x and y) of the current cell in the browser stored ? -> how can i get it?

Apostolique commented 8 years ago

You can use getPlayer()

It will return a list with all the player's cell's coordinates.

You could do getPlayer()[0].x and getplayer()[0].y

agarioBotDev commented 8 years ago

thanks, works !