Game Development Reference
In-Depth Information
Background
The Background actor is just used to display a background image in your game.
Create a new actor and double-click it to open the Actor Editor. Edit the actor
attributes with the parameters in Table 8-3.
Table 8-3. Background Actor Attributes
Name
Background
Size/Width
480
Size/Height
320
Import the wood background.png image located in the chapter_08 folder. Drag
and drop it into the actor.
Wall
The Wall actor is used to define the collidable boundaries for your ball. It is
important to change the restitution to 0 to avoid bounciness. In addition, the
walls are fixed position, so you will uncheck the Moveable attribute.
Create a new actor and double-click it to open the Actor Editor. Edit the actor
attributes with the parameters in Table 8-4.
Table 8-4. Wall Actor Attributes
Name
Wall
Color/Red
0.6
Color/Green
0.4
Color/Blue
0.2
Physics/Restitution
0
Physics/Moveable
Unchecked
 
Search WWH ::




Custom Search