java - Integrating Google Turn-Based Multiplayer with Google App Engine -


my existing android (java) game pits player against 8 ai opponents. i've decided implement asynchronous online turn-based multiplayer mode. support leaderboards , achievements through google play game services hoping use turn-based multiplayer api has proved far ideal due following restrictions within api -

  • every player has remain in app duration of game
  • only 1 multiplayer game can played @ once

my game of type might play turn , close game down until notification comes in it's turn again. also, 8 player game it's unlikely 8 instances going remain running throughout duration of entire game. it's player want participate in number of different games @ once. (although game nothing draw something, multiplayer model similar type need).

having dismissed possibility of using turn-based api, i've been looking other possibilities , have come across app engine. unfortunately 99% of developer experience client-side coding of these questions may seem naive...

  1. is possible integrate google play game services google app engine? ideally keep tied each players' google account seeing i'm using google play game services achievements , leaderboards.

  2. is app engine suitable allowing multiple instances of asynchronous turn-based games?

  3. will able use parts of multiplayer api such lobby system or need written scratch?

  4. how of learning curve involved setting backend system? resources need?

any advice on above gratefully received.

as earlier answer noted, there different between real-time , turn-based apis - turn-based apis allow play asynchronously, , - far know - can have multiple games running without problems.

https://developers.google.com/games/services/android/turnbasedmultiplayer

the system doesn't work turn-based games simultaneous moves, based on description, think work fine purposes.

regarding questions, i've spent time looking @ solutions multiplayer turn-based game myself , these observations:

  1. everything possible. if question - google play services support integration, answer no.

  2. it's suitable other framework might use implement web service. though depend on how processing need on server side; note there limits on how long requests can run, etc.

  3. you'll need roll own.

  4. if you're java programmer, should @ working java-based framework backend; google app engine support ok. consider setting own virtual server somewhere else - @ least right - there not benefit using google app engine stuff (at least imo). 2 key elements need clear on: how game state saved server-side, , how user authenticated. latter, in particular, important.

if game structure fits within google play services turn based framework, think twice before going own solution - @ least @ moment.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -