Photon Turn based conceptual questions

greenrift
edited February 2014 in Any Topic & Chat
There are a few different types of "turn based" games around. There are classical board games and card games that fit squarely into the turn based concept. There is another variant of "turn based" where both players play a round and the results of that round are not presented until all players have completed the round. Think of games like Ruzzle where each players turn isn't necessarily dependent on the other players until the round is over.

Would a set up like that be possible using the Photon turn based framework?

Comments

  • > Would a set up like that be possible using the Photon turn based framework?
    Yes.

    Photon Turnbased doesn't impose any rules for turns or anything such. The logic is very client driven.
    When enough players are in a room and want to start the match, save a room property for this initial turn 1. You can also store a datetime when the turn must be made or it gets ignored. Any user can send his turn in buffered events or set properties accordingly. Those get saved and when you re-join, they are available first. If all players made their turn, you must make sure they all get the result (either by calculating the result each or by making one calculate it and saving it). This should start the next turn.