Log inGet started
Package

creepsKit.package

README.md

creepKind (dataType contract)

One enemy kind for a tower defense, horde or wave game: its look colour and UI icon, its layer (ground or air), whether it is stealthed, its health, speed, contact damage, size, hover height and flat armour, the gold a kill is worth (bounty) and the lives it costs when it gets through (leak), and the traits it runs (a regenerating shield, healing nearby allies, splitting on death, stealth, boss phases).

creepsKit reads every .data file bound to this contract (creepsKit.creepKind) when Creeps.register() runs and defines each as a spawnerKit enemy kind under its id. The kit's own eleven kinds are in creepsKit.package/kinds/. To tweak a number, edit that file; to add a kind, copy one anywhere in your world, change its id, and call Creeps.register() again (or Creeps.reload()).

fieldmeaning
id, label, descriptionIdentity; id is the spawnerKit kind name used in wave data.
icon, glyphAn emoji for UI text, and a one or two letter ASCII fallback.
colorThe kind's colour (hex), the same in every style.
orderPlace in Creeps.catalog().
tagsLabels for filtering (Creeps.find({ tag = "armored" })).
layerground or air. Air kinds hover hover metres up; only turrets that hit air may target them.
stealthUntargetable unless revealed (see traits.stealth).
health, speed, damage, size, hoverspawnerKit numbers: hit points, metres per second, contact damage, body size, hover height.
armorFlat armour subtracted from every hit (at least 15% of a hit always lands; poison and environment damage go around armour).
bounty, leakSuggested gold for a kill and lives lost on a leak.
spawnablefalse for kinds only made by other kinds (the splitling).
traits.shieldamount of shield, recharging at regenRate per second after regenDelay seconds without a hit.
traits.healEvery interval seconds, heal allies within radius metres by amount (healsSelf: itself too).
traits.splitOn death, count enemies of kind into appear where it died, spread metres apart, and walk on from there.
traits.stealthHidden until hit (stays revealed revealTime seconds) or within reach of a detecting turret (detectRadius extra metres).
traits.bossthresholds (health fractions, e.g. [0.66, 0.33]) start phases 2 and 3: phase 2 multiplies speed by enrageSpeed; phase 3 raises a shield of shieldFraction of max health and summons summonCount of summon.