Layout for the game is fairly simple. A big die is on the left side of the screen and is the die that the player rolls. Beside that die is a dice container that holds all the rolls that the player has made in the round. Two buttons at the bottom of the game component allow the player to make another roll and to end their turn.
Handling the buttons is fairly simple. The roll button simply rolls the big die and checks it's value. Rolling a one automatically clears the container. Other rolls result in a new die being added to the container. The done button currently just clears the container, though in later builds will submit the round score to the player's object.
With the main game mechanics working, I am going for lunch.
Making Pig Page 4
Copyright © 2008 Blazing Games Inc. All Rights Reserved