Graphics Reference
In-Depth Information
Players (both AI and user controlled)
Battle controller
Global battle manager
User manager
Game controller
e game controller is attached to
a gameObject in
the main game scene.
Input controller
Player manager
Slot-based
weapon system
Class derived from
Wheeled vehicle
movement controller
AI controller
UI
manager Sound
manager
Scene manager
(persists across all scenes)
Path waypoint
controllers
Waypoint
gameObjects
Manager and control objects
Scene
Figure 13.2 Tank Battle game structure.
wheels and a different body model. They work exactly the same as the cars, with a dif-
ferent set of parameters set to make acceleration and steering more like a tank and less
like a car.
Each player has a battle controller component attached to them and a global battle
manager manages the overall race state; this is the exact same format as the race control-
lers and global race manager scripts from Metal Vehicle Doom .
13.1 Main Game Scene
Tank Battle has two scenes: a main menu and the main game battle arena scene.
The main menu consists of a single gameObject, and the main menu script is shown
in Chapter 10.
The main game scene Hierarchy structure contains the following:
ARENA
(Models that make up the environment, including a directional light to
brighten it up)
GameController
Main Camera
MusicController
Search WWH ::




Custom Search