Game Development Reference
In-Depth Information
Classified intel
During the game, a gamer needs to track not only the power level as shown in the Shield Life
sprite but also the score. Space Age displays the score on a scoreboard using three sprites,
one for each digit. They are complete sprites that work right out of the box. The Hundredth
sprite displays the hundred's place, the Tenth sprite displays the ten's place, and the One
sprite displays the one's place. Just like the Shield Life sprite, each scoreboard sprite has
costumes that matches the shown values, as shown in the following diagram:
To display numbers from 0 to 9, all the three sprites have costumes ranging from costume#1
to costume#10 , with costume#1 displaying the number 0 and costume#10 displaying the
number 9 .
For example, to display the score 257, the Hundredth sprite would switch to costume 3, the
Tenth sprite to costume 6, and the One sprite to costume 8.
Meeting your Game Manager
The Game Manager sprite is the brain of the game. It manages game logic including scoring,
level compleion, winning, and losing.
When the user clicks on the green flag, Game Manager displays the start page with
instrucions and a start buton. The game starts when the start buton is clicked. Ater the
game starts, Game Manager processes the broadcast messages sent from other sprites and
decides on the following aspects:
F The ime to move up a level
F When the game is won
F When the game is over
 
Search WWH ::




Custom Search