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.
onEnter
onDeath
onTick
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.
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 totower B
for 15 gold, then the point value fortower A
is 10 and the point value fortower 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
.