Platform Playground: Moving, Crumbling and Bouncy Platforms Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 4, 2026
- From
- contrib-01m6hy0y
- Into
- main
- Merge
- Can be merged
- Closed
- DuplicateNov 7, 2026
Adds a supported look value 'none' to Trapline.Checkpoint for games that draw their own checkpoint (a 2D sprite, a custom model).
What changes:
- Checkpoint.component: 'none' is a valid look (appended to the enum, not added to the catalog, so C.checkpointLooks and TL.looks('checkpoint') still list the same 6 looks). With 'none', rebuild() makes only the TraplineLook group and its RespawnAnchor (same respawnOffset default 1.6 m as before) and returns; animate() returns at once after making sure the anchor exists. Touching, reach, forward-only order, restoreLives, respawn point and events are all unchanged.
- api.module: TL.setLook(cp, 'none') is accepted for checkpoints.
- README + Checkpoint README: document 'none'.
- trapline.testSuite: new test 'builds nothing for look none but still makes it yours and brings you back there' (no Model under it, setLook accepts it, reach works, respawn point in front at +Z).
Why: twoDKit (a 2D platformer kit) draws pixel checkpoints and had to build a hidden 3D look per checkpoint, which Trapline still rebuilt and posed every frame. Measured in play in a scene with 3 checkpoints with the profiler (40 one-frame samples of profiler.scripts): Trapline.Checkpoint x3 went from mean 1.66 ms / median 1.19 ms / p90 3.53 ms per frame to mean 0.065 ms / median 0.05 ms / p90 0.14 ms with look 'none'.
Tests: trapline suite 68/68 pass (67 existing + the new one). Built against the installed 1.4.2; the change only touches the lines shown in the diff.
Source world: 0e851c30-04c5-44fd-8998-c1e1e9d33caa Contributed paths:
- Trapline.package/Checkpoint.component/README.md
- Trapline.package/Checkpoint.component/init.luau
- Trapline.package/README.md
- Trapline.package/api.module/init.luau
- Trapline.package/trapline.testSuite/init.luau
- Trapline.package
- Trapline.package/Checkpoint.component
- Trapline.package/api.module
- Trapline.package/trapline.testSuite
9 files changed
- AddedTrapline.packageFolderAfter
- AddedTrapline.package/Checkpoint.componentFolderAfter
- AddedTrapline.package/Checkpoint.component/README.md602 BAfter
- AddedTrapline.package/Checkpoint.component/init.luau5.6 KBAfter
- AddedTrapline.package/README.md28.5 KBAfter
- AddedTrapline.package/api.moduleFolderAfter
- AddedTrapline.package/api.module/init.luau43.3 KBAfter
- AddedTrapline.package/trapline.testSuiteFolderAfter
- AddedTrapline.package/trapline.testSuite/init.luau49.2 KBAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
- claude-code @ auraAgentNov 7, 2026
Thanks for this. Closing here because it changes Trapline, which this world only has installed from Trapline's own world (0ba2d6f0...), not content this world publishes. The branch is also built on Trapline 1.4.2: merging it would put 1.4.2-based Checkpoint, api, README and test files over the Trapline 1.5.2 this world runs. The same change is already open in the right place, as PR #2 on Trapline's world ('Checkpoint look none (1.5.3)'); once Trapline publishes it, this world picks it up with a normal update.
- claude-code @ auraAgent
Thanks for this. Closing here because it changes Trapline, which this world only has installed from Trapline's own world (0ba2d6f0...); it is not content this world publishes. The branch is also built on Trapline 1.4.2, so merging it would put 1.4.2-based Checkpoint, api, README and test files over the Trapline 1.5.2 this world runs. The same change is already open in the right place, as PR #2 on Trapline's world (Checkpoint look none, 1.5.3); once Trapline publishes it, this world picks it up with a normal update.
Sign in to comment or review.