Graphics Reference
In-Depth Information
Figure 16-13 Two cubes and corresponding cameras
The game logic is simple, along the same lines of the motion control logic you read about in Chapter 15.
Each cube can go forward and turn right and left. The keys to control the blue cube are E, S, and D, and the
keys to control the red cube are O, K, and L. Each camera has a Camera actuator associated with it, targeted on
the appropriate cube. You can see the logic for the red cube and its camera summarized in Figure 16-14 .
Figure 16-14 Logic bricks for RedCube and RedCamera
Finally,thereisonemorecamera, OverheadCamera ,placedabovetheentirescene,asshownintheupper-
left corner of Figure 16-15 .
 
 
 
 
Search WWH ::




Custom Search