pulviscriptor / agario-client

Node.js agar.io client implementation
MIT License
80 stars 43 forks source link

[Need Help] Multiple Client #176

Closed mbm3 closed 8 years ago

mbm3 commented 8 years ago

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 own bot.client.split() and bot.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's x and y 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 close serverInUse = false.) then it would check each server for availability..? im not sure if that is possible, but i'd rather have an elastic server.

pulviscriptor commented 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.

hassanila commented 8 years ago

@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