Game Development Reference
In-Depth Information
Door
Open Door
Victory Hole
Losing Hole
Ball
The Ball is the main actor of the game in the sense that it is the actor controlled
by the player. Because it's a ball, you will change the collision shape to circle,
which will provide a more realistic collision effect.
Create a new actor and double-click it to open the Actor Editor. Edit the actor
attributes with the parameters in Table 8-2.
Table 8-2. Ball Actor Attributes
Name
Ball
Size/Width
20
Size/Height
20
Physics/Density
3
Physics/Restitution
0
Physics/Fixed Rotation
Checked
Physics/Collision Shape
Circle
Import the image named ball.png located in the chapter_08 folder. Drag and
drop ball.png into the actor.
 
Search WWH ::




Custom Search