lapsang-boys / Crimson-Chronicles

A self-proclaimed paradigm shifting tower defense map in Warcraft 3
4 stars 0 forks source link

Legacy documentation #72

Closed karlek closed 6 years ago

karlek commented 6 years ago

TD documentation

Terminology

Zones: A collection of levels.

Area: A player area in a zone where the player builds towers to defend against waves of mobs.

Alexandria: The system which enables us to retrieve class information about mobs and towers.

Gotchas

Mobs

Here are some important (and unintuitive) fields in the object definitions of mobs:

Point value. This represents the bounty the player receives if the mob leaks.

Food used. This represents the number of lives that are taken from the player when the mob leaks.

Notes when creating a new mob:

When creating a new mob type, you'll have to write a new class that overrides the respective method in MobWrapper.

You'll also need to write a Hooker so that the spawn system can add the unit to Alexandria.

Towers

Here are some important (and unintuitive) fields in the object definitions of towers:

Point value. This represents the gold the player receives when the tower is sold, including previous gold costs spent for upgrades. Example: Tower A costs 10 gold and upgrades to tower B for 15 gold, then the point value for tower A is 10 and the point value for tower B is 25.

Notes when creating a new tower:

If the tower will utilize towers or create units/items/etc. it should be placed into Alexandria in TowerHook.wurst.