How to check game started for specific Room id.

0 votes

Hi

Suppose I started game when two players joins the using 

  1. startGame()  

but when third user joins the how can detect that the game is already started.

Thanks.

asked Sep 26, 2014 in AppWarpS2 by zumbarlal.saindane (11 points)

1 Answer

–1 vote
Hi,

There are more than one ways to know the game's running state.

1. If game is already started and you call the startGame then it will return BAD_REQUEST.

2. A user who is starting the game can add the room property "HasGameStarted"="true".Next user can join the room

using matchmaking api JoinRoomWithProperties() or after joining the room can check the room properties.

3. If game is already started and any user joins the room,he will get onMoveCompleted event within the TurnTime.
answered Sep 26, 2014 by errahulpanchal (169 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...