Closed mbm3 closed 8 years ago
Your question is more about coding in general than about agario-client
. You need to find place where coding-newbies can get help.
@MasonBurdette well... just one thing dont use agario-client if you're planning to sell bots... its a very stupid idea.. also I thought you were a coder dude LOL but nice that you're learning
I have the basics done already (split,feed,follow mouse). I see where in examples/multiple.js it makes a
new ExampleBot
and I have made my ownbot.client.split()
andbot.client.eject()
. All of the client data is streamed through a websocket connection, which is great. Now here is my problem, how would I make this script compatible for multiple users? So if one client/connection'sx
andy
position are different or split/eject values are different, only his bots would do that. I hope someone has an answer to help me, thank you in advance.P.S., would it be possible, just to make multiple servers run, and make a server finder to find the next open server (on ws open
serverInUse = true
and on ws closeserverInUse = false
.) then it would check each server for availability..? im not sure if that is possible, but i'd rather have an elastic server.