Dana Vrajitoru
B583 Game Programming and Design

Arcade Games and General Concepts

2D Arcade Games

Game Objects

Active Game Objects

World Representation

Implicit World

Explicit World

Zone-Based World

Animation Type

Game Loop

Event Loop

Simple Action / Reaction

Select 1 Object
Most card games (select card, move to another stack), jigsaw puzzles, sudoku.

Select Multiple Objects

Animated Game Loops

Timing in a Game

Generic Game Loop

game_loop() 
{
    while (not exit) 
    {
        for (1/(cps * dt) times)
            physics.update();
        updateUserInput();
        for (all the characters in the game) 
            character.update();
        checkSolveInteractions();
        redisplay(); 
        playSound();
        restartTimer(1/cps);
    }  
}

Multi-Threaded Loops

Character Interaction

Collision Detection

Intervals

Intersecting Boxes

Two boxes intersect if they intersect in all dimensions.

Point and Triangle

Two Triangles
You need to check for both:

Collision Detection in Unity
A Rigidbody2D has two collision detection modes:

A Rigidbody (3D) has 3 collision detection modes: