12
Video Game Design Composition
Chapter 12
Programming Composition .............................................352
Languages .................................................................................354
Machine Language ......................................................................354
Programming Language ..............................................................355
Syntax ..........................................................................................355
Choice of Language .....................................................................357
Pseudo Code ...............................................................................358
Storing Data ..............................................................................360
Variable ........................................................................................360
Array ............................................................................................363
Class versus Instance ..................................................................364
Modules .......................................................................................364
Naming Convention ....................................................................366
Comments ...................................................................................366
Operators ..................................................................................368
AND
Operator ..............................................................................369
OR
Operator ................................................................................370
ELSE
Operator .............................................................................370
NOT
and
NOR
Operators .............................................................370
Algorithm ..................................................................................371
Loops ...........................................................................................372
Recursion ....................................................................................373
Collision Theory .........................................................................374
Physics.......................................................................................375
Momentum ..................................................................................375
Inertia ..........................................................................................376
Conservation of Matter and Energy ............................................376
Gravity .........................................................................................377
Chapter 13
Simulation Composition ..................................................384
Comparison of Simulations to Video Games ...........................386
Simulation Components ...........................................................389
System .........................................................................................389
Entities.........................................................................................390
Events ..........................................................................................393
Simulation Classification ..........................................................395
Automated ..................................................................................395
Interactive ...................................................................................397
Reconstructive ............................................................................399
Simulation Purpose ...................................................................399
Exposure and Concealment ........................................................400
Significance .................................................................................400