Implementation of the Scene Graph

The game will be rendered in retained mode, with the scene graph constructed in code. The graph starts with a World object that contains two cameras. The first one will move with the player, and the second one is fixed on top of the maze. The background contains an image with a star field. The rest of the components are geometrical objects, all of them rectangular planes. That includes the floor, the walls, the location square, and the start and end marks. Each object includes an appearance. Notice that there are no lights in the world as the appearance is just made by textures rather than materials.

The end mark mesh contains an animation track that updates its position up and down the y axis. Every time the scene is rendered, the time is increased and the World's animate method is called to advance the animation.

The figure below shows a diagram of what the scene graph looks like, starting from the World object.

Figure 62: Scene Graph