Game Development Reference
In-Depth Information
startGameAfterSomeTime , which will reset the game to its initial state and
the players can restart the game again.
case KNetworkPacketCodePlayerLost:
{
self.gameState = kGameStateComplete;
[self addGameInfoLabelWithText:kGameLostText];
[self restartGameAfterSomeTime];
break;
}
After using these two block of codes, about one player winning and the other
player losing, the game looks like the following image for both devices:
Search WWH ::




Custom Search