Quick Reference
Actions 1
| placeCost() | Each frame: the travelling square moves on, and the cost stands by the destination, where the view shows it n… |
Updating & Drawing 5
| drawWay3D() | Draws the way3 d. |
| drawWay2D() | Draws the way2 d. |
| update() | Update. |
| draw2D() | Draw2 d. |
| draw3D() | Draw3 d. |
Other 4
| collect() | Every cell to mark and its kind, the strongest winning where two overlap; the cursor last. |
| wayPulse() | Where the travelling square is frames after the way was laid, as a place along the way in tiles (0: the unit'… |
| wayGlow() | How bright the travelling square makes tile i when it is at place: 1 on the tile, easing to 0 a tile away eit… |
| pulseWay() | Each frame while a way shows: the travelling square moves on. |
Actions
placeCost
static sourceM.placeCost(spriteset)
Each frame: the travelling square moves on, and the cost stands by the destination, where the view shows it now.
Updating & Drawing
drawWay3D
static sourceM.drawWay3D(live)
Draws the way3 d.
drawWay2D
static sourceM.drawWay2D(spriteset, on)
Draws the way2 d.
update
static sourceM.update(spriteset)
Update.
draw2D
static sourceM.draw2D(spriteset, count)
Draw2 d.
draw3D
static sourceM.draw3D(live)
Draw3 d.
Other
collect
static sourceM.collect(fight)
Every cell to mark and its kind, the strongest winning where two overlap; the cursor last.
wayPulse
static sourceM.wayPulse(frames, count)
Where the travelling square is frames after the way was laid, as a place along the way in tiles (0: the unit's own tile, count - 1: the destination, and on to count, where the destination has dimmed again).
Details
Where the travelling square is frames after the way was laid, as a place along the way in tiles (0: the
unit's own tile, count - 1: the destination, and on to count, where the destination has dimmed again).
NaN while it rests before the next pass.
wayGlow
static sourceM.wayGlow(i, place)
How bright the travelling square makes tile i when it is at place: 1 on the tile, easing to 0 a tile away either side.
pulseWay
static sourceM.pulseWay(spriteset)
Each frame while a way shows: the travelling square moves on.
Details
Each frame while a way shows: the travelling square moves on. Nothing is made; with no way it costs a comparison.