director
Tumblestep's run director, one per player and local to that player's machine. Phases: `title` (the tumbler stands on the top step of a live course under the title card) → `aim` (hover the tumbler, hold to charge, release to shove; touch tap-hold; pad reticle + trigger; Space / En…
game.run.director
Tumblestep's run director, one per player and local to that player's machine. Phases: title (the tumbler stands on
the top step of a live course under the title card) → aim (hover the tumbler, hold to charge, release to shove;
touch tap-hold; pad reticle + trigger; Space / Enter quick shove) → tumble (the endless course streams around the
tumbler, toys are populated on every chunk, every impact / combo / coin / toy / area scores Bonks) → results (the
run is banked through game.economy; Again starts a new course).
It owns the course (endlessStairs.course, a fresh seed per run), the tumbler (tumbleTroupe.troupe, unsynced) and
the toys (courseToys.toys, unsynced, body group = the tumbler's bodies), handles course rebases for the tumbler and
camera, and emits on game.events: phase, popup, banner, score, runEnd, rebase, secondWind.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nonstrict
refreshExclude( ) → void
the camera's casts ignore the tumbler and the invisible guard rails
now( ) → number return time
v3(p: any) → void
| arg | type | description |
|---|---|---|
| p | any |
norm(a: { number }) → void
| arg | type | description |
|---|---|---|
| a | { number } |
resolveQuality( ) → string
applySettings( ) → void
applyRim( ) → void
setHighlight(seg: string?) → void
| arg | type | description |
|---|---|---|
| seg | string? |
despawnTumbler( ) → void
applyPhysicsProps( ) → void
spawnTumbler(pos: { number }, forward: { number }) → void
| arg | type | description |
|---|---|---|
| pos | { number } | |
| forward | { number } |
credit(...: ?) → void
| arg | type | description |
|---|---|---|
| ... | ? |
onWreck(reason: ?) → void
| arg | type | description |
|---|---|---|
| reason | ? |
popup(text: string, point: any, kind: string?, size: number?, pts: number?) → void
| arg | type | description |
|---|---|---|
| text | string | |
| point | any | |
| kind | string? | |
| size | number? | |
| pts | number? |
syncCombo( ) → void
the live combo numbers other systems read (Second Wind, camera, HUD)
credit(cat: string, amount: number, point: any?, label: string?, kind: string?, chainHit: boolean?) → void
scoring is scoreKit's (game.run.scoring): it builds the combo and the multiplier, pops the "+N" and draws the score display. `chainHit` marks a solid bonk or a toy that keeps the chain going.
| arg | type | description |
|---|---|---|
| cat | string | |
| amount | number | |
| point | any? | |
| label | string? | |
| kind | string? | |
| chainHit | boolean? |
chain(point: any?) → void
| arg | type | description |
|---|---|---|
| point | any? |
endChain(n: number) → void
a chain that ends pays 2 Bonks per hit as its own results line
| arg | type | description |
|---|---|---|
| n | number |
slowMoment(kind: string, point: any?, scale: number?) → void
| arg | type | description |
|---|---|---|
| kind | string | |
| point | any? | |
| scale | number? |
onImpact(ev: ?) → void
| arg | type | description |
|---|---|---|
| ev | ? |
onToy(ev: ?) → void
| arg | type | description |
|---|---|---|
| ev | ? |
despawnWalls(index: number) → void
| arg | type | description |
|---|---|---|
| index | number |
queueWalls(chunk: ?) → void
| arg | type | description |
|---|---|---|
| chunk | ? |
pumpWalls( ) → void
clearCourse( ) → void
populate(chunk: ?) → void
| arg | type | description |
|---|---|---|
| chunk | ? |
onAreaEnter(a: ?) → void
| arg | type | description |
|---|---|---|
| a | ? |
onRebase(ev: ?) → void
| arg | type | description |
|---|---|---|
| ev | ? |
sessionSeed( ) → number
one course per play session, the same on every peer: the seed is a hash of the multiplayer room this peer is in, so everyone in the world tumbles down the identical stair (each peer builds it locally) and sees the others on it
newCourse( ) → void
resetRun( ) → void
startSlot(width: number) → void
a fresh course and where the run starts on it (cheap: nothing is built yet) this player's start spot: slot k by peer id order among the peers in the room (0 alone). Three spots across the top step (centre, left, right, 1.15 m apart, kept 0.6 m off the walls), then the next three a few steps further down. Returns (lateral offset m, extra course metres down).
| arg | type | description |
|---|---|---|
| width | number |
prepareRun( ) → void
finishSetup(phase: string, pos: { number }, fwd: { number }, start: number) → void
| arg | type | description |
|---|---|---|
| phase | string | |
| pos | { number } | |
| fwd | { number } | |
| start | number |
setupRun(phase: string) → void
build the whole start of the course in one frame (boot only: the title is not on screen yet)
| arg | type | description |
|---|---|---|
| phase | string |
setupRunAsync(phase: string) → void
| arg | type | description |
|---|---|---|
| phase | string |
finish( ) → void
finishRun(reason: string?) → void
| arg | type | description |
|---|---|---|
| reason | string? |
doPush(power: number, seg: string?, point: { number }?) → void
| arg | type | description |
|---|---|---|
| power | number | |
| seg | string? | |
| point | { number }? |
pointerScreen( ) → void
pickAt(sx: number, sy: number) → void
| arg | type | description |
|---|---|---|
| sx | number | |
| sy | number |
canAim( ) → boolean
beginCharge(seg: string, pt: { number }) → void
| arg | type | description |
|---|---|---|
| seg | string | |
| pt | { number } |
onPushPressed( ) → void
onPushReleased( ) → void
tickAim(rdt: number) → void
| arg | type | description |
|---|---|---|
| rdt | number |
magnetCoins(p: { number }, dt: number) → void
| arg | type | description |
|---|---|---|
| p | { number } | |
| dt | number |
tickTumble(dt: number, rdt: number) → void
| arg | type | description |
|---|---|---|
| dt | number | |
| rdt | number |
ensureCamera( ) → void
onUi(ev: ?) → void
| arg | type | description |
|---|---|---|
| ev | ? |
peerName(key: string) → string
| arg | type | description |
|---|---|---|
| key | string |
tickTags( ) → void
awake( ) → void
trackDevice( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.