Micropolis
sprite.cpp File Reference

Manages sprite objects and their behavior in Micropolis. More...

#include "micropolis.h"
#include "text.h"

Go to the source code of this file.

Macros

#define TRA_GROOVE_X   -39
 
#define TRA_GROOVE_Y   6
 
#define BUS_GROOVE_X   -39
 
#define BUS_GROOVE_Y   6
 
#define AHEAD   8
 

Detailed Description

Manages sprite objects and their behavior in Micropolis.

This file defines functions related to the creation, movement, interaction, and destruction of various sprites such as trains, helicopters, airplanes, ships, monsters, tornadoes, and explosions within the Micropolis game. It handles the logic for sprite behavior, including movement patterns, interactions with other sprites and the game map, and event-triggered actions like explosions and sound effects.

Definition in file sprite.cpp.