Apply builder learnings to the demo + add four showcase scenes#28
Merged
Conversation
Bring the Kit Showcase demo up to the standard of the contraption builder, and expand it from 6 to 10 scenes. Improve (ported patterns): - Build-once: chromeBuilt() + uUIVersion stamp + rebuildCB, so the chrome persists with the saved stack and only the scene physics re-inits per open. - Theme constants: the scattered chrome RGB strings collapse into a kCol* block. - DRY + hover: setBtnIdle/setBtnActive helpers, plus real hover states on the scene/tool tabs (the demo had none); the highlighters route through them. - Wider 1180x760 window with a width-adaptive tab bar that fits all scenes. Expand (four new scenes, reusing proven kit primitives): - Dominoes: a long row of tiles to topple (chain reaction). - Balloons: negative-gravity-scale balls on rope joints to ground pegs. - Wrecking Ball: a heavy hinged arm, pre-lifted, that smashes a brick wall. - Magnets: per-frame b2kPush pulls every shape (and dropped bodies) to the cursor. Tuning constants (kMagPull, kWreckDensity) and a couple of scene geometries may want a tweak in the IDE; the structure follows the existing scene builders. https://claude.ai/code/session_01XpBcQg2DbncrBcFZLHqhMj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bring the Kit Showcase demo up to the standard of the contraption builder, and expand it from 6 to 10 scenes.
Improve (ported patterns):
Expand (four new scenes, reusing proven kit primitives):
Tuning constants (kMagPull, kWreckDensity) and a couple of scene geometries may want a tweak in the IDE; the structure follows the existing scene builders.
https://claude.ai/code/session_01XpBcQg2DbncrBcFZLHqhMj