Game Development Reference
In-Depth Information
Open the starter project and check out the sprites included. The following table gives a quick
overview of what each sprite does:
Sprite name
Description
Scripts included in starter project?
Spaceship
The sprite that the player
controls directly
No
Spaceship Ammo
No
Shield
Protects the Spaceship against
enemy crash but not against the
enemy ammo
No
Shield Life
Displays the power level of the
shield
No
Life Boost
Resets shield power to full
Yes
Laser Boost
Increases laser power to shoot
through all enemies on the
laser track
Yes
Rock
Enemy sprite that falls
Yes
Mother Ship
Enemy sprite that flies in
a pattern
Yes
Enemy Ammo
Ammo fired by the enemy
sprites
Yes
Game Manager
Manager's game levels and
scores
Yes
Start Button
When pressed, game starts
Yes
Hundredth
Display the hundred's digit of
the score
Yes
Tenth
Display the ten's digit of the
score
Yes
One
Display the one's digit of the
score
Yes
Global variables are variables that are shared by all sprites and local variables are variables
used by one sprite only. Global variables are convenient for sprites to share informaion, just
like a bullein board. You may think of global variables as posts on a bullein board for all
sprites to see, and local variables as private leters just for the eyes of the owner sprite.
Search WWH ::




Custom Search