WILDLANDS — the creatures.
Twelve original species, each with its own anatomy, its own animation, its own
AI and its own ability. A creature is a small hierarchy of entities: a torso
with a head, legs, tail, wings and ornaments hanging off it, so every part can
be articulated. The anatomy table says what parts a species has and how big;
the assembler turns that into geometry; the animator drives the joints.
Body measurements are HALF-extents in metres: `len` is half the nose-to-tail
length of the torso, `hgt` half its height, `wid` half its width.
lerp(a: ?, b: ?, t: ?) → void
| arg | type | description |
|---|
| a | ? | |
| b | ? | |
| t | ? | |
toLinear(c: ?) → void
The renderer reads a vertex colour as LINEAR light, while a hex code is sRGB.
Feeding 0x4d straight in renders as a washed-out pastel, so every palette
entry is decoded once here.
skinColor(col: ?, shade: ?) → void
Every part is built at its own pivot: a leg's pivot is its hip, a wing's is
its shoulder, the head's is the base of the neck. That is what lets a joint
rotate the part about the right point.
| arg | type | description |
|---|
| col | ? | |
| shade | ? | |
buildTorso(a: ?, col: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
buildHead(a: ?, col: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
buildLeg(a: ?, col: ?, len: ?, thick: ?, broad: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
| len | ? | |
| thick | ? | |
| broad | ? | |
buildTail(a: ?, col: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
buildWing(a: ?, col: ?, side: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
| side | ? | |
buildOrnaments(a: ?, col: ?, kind: ?) → void
| arg | type | description |
|---|
| a | ? | |
| col | ? | |
| kind | ? | |
spawn(parent: ?, key: ?, x: ?, y: ?, z: ?, level: ?) → void
| arg | type | description |
|---|
| parent | ? | |
| key | ? | |
| x | ? | |
| y | ? | |
| z | ? | |
| level | ? | |
posePart(rec: ?, name: ?, rx: ?, ry: ?, rz: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| name | ? | |
| rx | ? | |
| ry | ? | |
| rz | ? | |
animate(rec: ?, dt: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| dt | ? | |
moveToward(rec: ?, tx: ?, tz: ?, dt: ?, ctx: ?, speedMul: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| tx | ? | |
| tz | ? | |
| dt | ? | |
| ctx | ? | |
| speedMul | ? | |
distanceTo(rec: ?, x: ?, z: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| x | ? | |
| z | ? | |
useAbility(rec: ?, ctx: ?, dist: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| ctx | ? | |
| dist | ? | |
tick(rec: ?, dt: ?, ctx: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| dt | ? | |
| ctx | ? | |
hit(rec: ?, dmg: ?, ctx: ?) → void
Damage entry point: armour, shield, the hurt state and the defeat trigger all
live here, so every source of damage behaves the same.
| arg | type | description |
|---|
| rec | ? | |
| dmg | ? | |
| ctx | ? | |
despawn(rec: ?, delay: ?) → void
| arg | type | description |
|---|
| rec | ? | |
| delay | ? | |