Zachinio
Zachinio

Reputation: 21

develop android multiplayer game

I try to develop a multiplayer game in android,so far I developed the game on client side and it works fine,but now I got to know how I develop the server side. How people can play in the internet? The game is turns base,all I need to know is what to start with,I have read some articles about it but I can't understand if I need to pruchase a server and how to connect the server via android.

Thanks for the help.

Upvotes: 1

Views: 1742

Answers (2)

Sreekanth
Sreekanth

Reputation: 2917

If you are distributing your game only through Google Play you can use Google Play Games Services to develop multiplayer games without the need for a server.

Check here for more details https://developers.google.com/games/services/android/realtimeMultiplayer

It's simple and easy to get started.

Upvotes: 0

Nooh
Nooh

Reputation: 1546

You need a server API for multiplayer game,

for example 1st player moved to position 25.

send a post request to http://example.com/move with some parameters(like postion,etc)

and other side he can continuously check for move

use PHP,MySql,Slim frame work to make an API.

i found an tutorial for you http://www.androidhive.info/2014/01/how-to-create-rest-api-for-android-app-using-php-slim-and-mysql-day-12-2/

Upvotes: 1

Related Questions