ulikk / aquator

small shmup prototype
0 stars 0 forks source link

Engine Design #2

Open ulikk opened 10 years ago

ulikk commented 10 years ago

After the first milestone, i extracted the following first design für a Game Engine:

First, the game is quantized into "game ticks", to which the whole game is synchronized.

-- GameObjects -- A GameObject is a thing in the game that represents an entity which encapsulates either a visible object or some other encapsulated property.

-- GameObjectStorage -- All GameObjects are stored in a global storage from which they can be accessed

-- GameEvent -- A GameEvent is basically a piece of code that can be scheduled for execution, with an optional delay. All GameEvents are synchronized in one global queue. A GameEvent is automatically removed from the queue after execution.

Examples of GameEvents: