Reputation: 21
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
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
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