Game Development Reference
In-Depth Information
eb$lh]uan*t)lh]uanD]hbSe`pd8habpEjjan>kqj`]nu%
w
lh]uan*t9habpEjjan>kqj`]nu'lh]uanD]hbSe`pd7
necdpEjjan>kqj`]nu9$op]ca*op]caSe`pd+.% ±
'$op]ca*op]caSe`pd+0%7
^]_gcnkqj`*t)9rt7
y
Figure 6-18 illustrates what is happening.
Original Boundary
New Boundary
Figure 6-17. When the background object stops moving, the boundary is
extended to allow the player object to travel to the edge of the stage.
When the player object reaches the left
boundary, the right boundary resets to
its original position. .
Figure 6-18. The inner right boundary resets to its original position when
the player object reaches the inner-left boundary.
 
Search Nedrilad ::




Custom Search