Game Development Reference
In-Depth Information
To create a global variable, just select the For all sprites radio buton as shown in the
following screenshot:
In Space Age, there are six global variables: enemy_count , frame_rate , game_level ,
game_score , power_boost_on , and max_game_level . Their descripion is given in the
following table:
Global variable name
Description
current_enemy_count
Current count of enemies in game
frame_rate
The frame refresh rate; often used to pause for
the costume
game_level
Current level of the game; range— 1~max_
game_level
game_score
Current game score; range— 000~999
power_boost_on
True if spaceship's laser boost is on; false if it is off
max_game_level
Highest level in this game
Objective complete - mini debriefing
We've covered the stage, global variables, and the sprites in Space Age. Ater geing a quick
glimpse of all the sprites, next we will complete each sprite.
Search WWH ::




Custom Search