Game Development Reference
In-Depth Information
Figure 5-5. Actors created
Controlling the Number of Enemies with Game
Attributes
At first, you will only create one attribute that will be used to contain the number
of carrots remaining on screen. As such, it will be an integer attribute that you
will call NumberCarrots.
At the start of the game, this attribute will contain the number of carrots on the
screen and it will be decremented by 1 each time a carrot is smashed by the
bullet beam.
 
Search WWH ::




Custom Search