Game Development Reference
In-Depth Information
Aiming at a Target: Destroying Blocks
What would a canon game be without target and blocks to protect the target? In
this section, you will increase the game experience by creating three categories
of blocks to be destroyed and you'll create the required interactions to play the
game.
Creating the Blocks: Hard, Soft, and the Target
You will create three types of blocks: hard, soft, and the target blocks. The
target is the aim. A single hit by the projectile and the level is completed. The
soft block will simulate easy-to-destroy blocks; a double hit will be required to
destroy these blocks. Last, hard blocks will simulate a rock-solid block; a triple
hit will be required to destroy these blocks.
Target
Open the scene in the Scene Editor and create a new actor. Name the actor
''Target.'' Change the attributes as per Table 7-1.
Table 7-1. Target Actor Attributes
Name
Target
Size\Width
50
Size\Height
50
Color\Red
0.8
Color\Green
0.2
Color\Blue
1
Physics\Restitution
0
Soft Block
Create a new actor and name it ''Soft Block.'' Change the attributes as per
Table 7-2.
 
Search WWH ::




Custom Search