Game Development Reference
In-Depth Information
When the frogs jump from one spot to the other, it carries along all the frogs on top of
it. The frog may move a step closer towards the finish or backwards towards the start.
To make the game interesting, each player is unaware of the other player's color.
The frogs move either forward or backward based on the card that a player plays.
Each player gets three cards at the beginning of the game. A player may discard the
card or play it to affect any of the frogs in the race.
When a player plays or discards one of the three cards in hand, he or she gets a fresh
card from the deck, so the player always holds three cards in hand.
In this implementation of the game, when one of the frogs wins, the race starts again,
with each player getting a randomly new color and the race starting from spot 0. The
initial position of the frogs is randomly assigned, but they all begin at spot 0. The
winning player gets a score of 1.
Implementation
We will first walk through the graphics part of the implementation. We then will
see how the cards in the game are managed and then finally how we can put it all
together to make it a multiplayer game based on Pulse API.
Graphics
The game source is organized in the following way:
 
Search WWH ::




Custom Search