Game Development Reference
In-Depth Information
How it works
This section was all about the game play and the game mechanics; it had two parts, one de-
tecting the collisions to decide the winner and second resetting the game to the initial state
once the game ended.
To accomplish this, using the intersection of frame method, we detected the collision and
declared the local player as winner and the other player as loser by sending a packet. As the
game ended here, to help the user restart it again, at the same time as declaration of winner
and loser takes place, we also reset the game to its initial state so that the players can restart
the game again.
Search WWH ::




Custom Search