How to make agar.io game?

I would like to know how to make a agar.io game. I don’t think it would be to hard but I do need help in certain areas, like how to do multiplayer, how to use a joystick to make the player move, and how to make the screen scroll while you are moving, you know stuff like that. Any help is appreciated. Thanks in advance  :slight_smile:

Whilst that looks simple to make it really isn’t.  You have to build the network structure first as without that you have no basis for a game.  Your backend will need to tell all other instances of the same game in real time the properties of each player (x, y, size, velocity, etc) in real time,  You then take this info and draw the screen in an enterFrame() event.

IMHO, a virtual joystick would be a bad move and a more native touch implementation would be more intuitive for mobile - just like agar.io does with the mouse.

Okay got it I won’t use a joy stick. Aren’t there severs that allow you to do multiplayer games? Sorry if this is a silly question I have never tried to make an online game before :slight_smile:

There are multiplayer options available, some are internal (Eg: Autolan), others are server based (Gamesparks). It depends on what you’re trying to achieve and how you want it architected.

Autolan is in the Code Exchange area or the site, and I think GameSparks in in the marketplace for free to install, and the cost applies I think when you hit 100,000 MAU’s.

Yes there are solutions out there but you will need to research whether they support real time networking or the more simple turn-based multiplayer.  Each player will need to update every other player many times per second.  This is not an easy task as you will have to factor in latency

Lots of documentation here - https://docs.gamesparks.com/tutorials/real-time-services/understanding-gamesparks-real-time.html and https://docs.gamesparks.com/tutorials/real-time-services/real-time-best-practices.html

Okay thanks :slight_smile:

Thanks for the mentions!

Ajrmarion - If you have any questions about using GameSparks, please do not hesitate to get in touch with us via: https://support.gamesparks.net/support/home

You may also find this doc useful, if you haven’t seen it already: https://bitbucket.org/gamesparks/gamesparks-corona

We also have loads of tutorials at https://docs2.gamesparks.com/

Best of luck with your game!

Clare 

This is really helpful thanks!

Whilst that looks simple to make it really isn’t.  You have to build the network structure first as without that you have no basis for a game.  Your backend will need to tell all other instances of the same game in real time the properties of each player (x, y, size, velocity, etc) in real time,  You then take this info and draw the screen in an enterFrame() event.

IMHO, a virtual joystick would be a bad move and a more native touch implementation would be more intuitive for mobile - just like agar.io does with the mouse.

Okay got it I won’t use a joy stick. Aren’t there severs that allow you to do multiplayer games? Sorry if this is a silly question I have never tried to make an online game before :slight_smile:

There are multiplayer options available, some are internal (Eg: Autolan), others are server based (Gamesparks). It depends on what you’re trying to achieve and how you want it architected.

Autolan is in the Code Exchange area or the site, and I think GameSparks in in the marketplace for free to install, and the cost applies I think when you hit 100,000 MAU’s.

Yes there are solutions out there but you will need to research whether they support real time networking or the more simple turn-based multiplayer.  Each player will need to update every other player many times per second.  This is not an easy task as you will have to factor in latency

Lots of documentation here - https://docs.gamesparks.com/tutorials/real-time-services/understanding-gamesparks-real-time.html and https://docs.gamesparks.com/tutorials/real-time-services/real-time-best-practices.html

Okay thanks :slight_smile:

Thanks for the mentions!

Ajrmarion - If you have any questions about using GameSparks, please do not hesitate to get in touch with us via: https://support.gamesparks.net/support/home

You may also find this doc useful, if you haven’t seen it already: https://bitbucket.org/gamesparks/gamesparks-corona

We also have loads of tutorials at https://docs2.gamesparks.com/

Best of luck with your game!

Clare 

This is really helpful thanks!