Closed matthijn closed 10 years ago
This can be routed through the CHALLENGE system and requires no extra coding on the server.
Tap rematch = send CHALLENGE_PLAYER [opponent.id]
Receive CHALLENGE_OK = show our checkmark (because challenge was delivered), now waiting...
Receive CHALLENGE: show the checkmark, opponent challenged us. Tap rematch = send ACCEPT_CHALLENGE, exit scene = send DECLINE_CHALLENGE.
We need to add a method to STKEndGameScene: to activate/deactivate the rematch checkmark.
Create the rematch system! When one presses the button, a checkmark appears on his button and the button of the opponent. When both pressed the rematch button, its on!