api
The front door of courseKit: one table, `Course`, with every call a level script needs to build a 3D platformer course, `setLook` (the one call that re-themes everything placed after it), `frame`, `place` (any piece kind and variant, chained by its `exit`), the pieces (`stairs`,…
courseKit.api
The front door of courseKit: one table, Course, with every call a level script needs to build a 3D platformer course, setLook (the one call that re-themes everything placed after it), frame, place (any piece kind and variant, chained by its exit), the pieces (stairs, steps, switchback, ledge, wallLedges, bridge, slide, gaps, arena, spiral, gate, crumbleStair, windGap), the parts (deck, ramp, pillar, water, sign, lanternPost, prop, trees, platform, reskin), the safety nets (killStrip, killUnder) and the look catalog (themes, lookNames, defineLook, defineLantern). Called by a game's level modules and scene builds.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict courseKit.api: build 3D platformer courses from pieces. Author a course in course-local coordinates with a frame, then place decks, ramps, stairs and climbs (floating steps, switchbacks), ledges (narrow beams, wall ledges), bridges (plank, rope, stone arch), slides (chutes the player slides down), jump-gap sets with landing pads sized for a running jump, arenas (round or square pads with a rim), spiral climbs round a pillar or trunk, lantern gates (checkpoint archways), crumble stairs (platformsKit crumbling steps), wind gaps (fans and crosswinds that carry you over), pillars, water, Trapline kill strips (safety nets, `killUnder` sizes one under what you placed), signs, lantern posts, props and platformsKit platforms. Every piece is drawn in the course look: ONE call, `Course.setLook(theme)`, switches every piece placed after it (themes: storybook, alpine, candy, ruins, scifi, desert).
setLook(name: string) → any
Switch the course look with one call. `name` is a theme (storybook, alpine, candy, ruins, scifi, desert: decks, bridges, climbs, slides, gaps, arenas, signs, lanterns, water and platform looks all switch) or a single deck look (snowTop, timber, mossyStone, ice, floe, ropePlank, meadow, industrial). Pieces placed after the call use it. Returns the defaults.
| arg | type | description |
|---|---|---|
| name | string |
look( ) → string
The current theme name.
lookNames(family: string) → void
Every look name of a family: "theme", "deck", "water", "sign", "lantern", "reskin", "platforms".
| arg | type | description |
|---|---|---|
| family | string |
themes( ) → void
Every theme name (the looks `setLook` takes), sorted.
defineLook(family: string, name: string, spec: any) → void
Add your own look to a family ("theme", "deck", "water", "sign", "lantern", "reskin"): `spec` takes the same fields as the built-in looks of that family (see courseKit.looks).
| arg | type | description |
|---|---|---|
| family | string | |
| name | string | |
| spec | any |
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.