Micropolis
animate.cpp File Reference

Animation routines for the Micropolis game engine. More...

#include "micropolis.h"

Go to the source code of this file.

Variables

static short animatedTiles [TILE_COUNT]
 

Detailed Description

Animation routines for the Micropolis game engine.

This file contains functions responsible for animating various tiles within the Micropolis game. It includes a mapping of each tile to its next animated state, and functions that iterate through the game world's tiles to update their animation states. The animation process is crucial for enhancing the game's visual appeal and dynamic feel by animating elements like water, fire, and smoke.

Definition in file animate.cpp.

Variable Documentation

◆ animatedTiles

short animatedTiles[TILE_COUNT]
static

Tile animation table. For each tile, it states the next tile to display.

Bug:
Tile 620 points to 852. That should be tile 621.
Todo:
Generate the table below from the animation sequences file doc/AnimationSequences.txt and the doc/genAnimationTable.py program

Definition at line 92 of file animate.cpp.