UNIT 7 Flashcards

1
Q

Game code ad-hoc structure is more suitable for 2-D and board games than for any other small game.

A

False, Ad hoc architecture is fine for projects with very small code bases (a few dozen files) but is very limiting in large projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Layered code architecture is a modular architecture, a DAG architecture, and an ad-hoc architecture.

A

False, while the DAG architecture allowed a module to access any other module underneath itself, here modules are arranged in rigid layers, and a module can only interact with modules in the layer directly below

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Memory leakage could occur if a game phase initialization took place but there was no shutdown.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Resource Aquisition Is Initialization (RAII) concept indicates that a game phase must wait for resources to be released by other phases before starting.

A

False, creating an object will acquire and initialize all the necessary resources, and destroying it will take care of destroying and shutting down all those resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Game phase shutdown might take a long time because it includes resetting or destroying data structures with many nodes and edges, and doing a lot of general cleanup.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To allow a game to run on different video frequencies for PAL and NTSC, time steps should not use the main game loop CPU clock.

A

False, using a clock allows different CPU speeds and frequencies to play the game at the same speed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

We should sample the input device once every 33.3 seconds, rather than once every frame.

A

False, sample the input once per frame for “instantaneous” responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Either the collision task or the simulation task in the main game loop is responsible for running the AI behaviour code.

A

False, the simulation task is responsible for the AI behaviour code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

For the sake of improving debugging, we should decouple the rendering step from the simulation step.

A

False, this technique actually allows a game to run the simulation at a fixed rate (e.g. 20 times per second)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly