nilswx / strik

Mobile multiplayer word game with cocos2D
2 stars 0 forks source link

[End game] Rematch #38

Closed matthijn closed 10 years ago

matthijn commented 10 years ago

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!

nilswx commented 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.

nilswx commented 10 years ago

We need to add a method to STKEndGameScene: to activate/deactivate the rematch checkmark.