Skip to content

[4/16] feat: load authored collision with a debug overlay - #120

Merged
arudaev merged 6 commits into
chore/24-asset-loaderfrom
chore/34-collision-loader
Oct 24, 2026
Merged

arudaev merged 6 commits into
chore/24-asset-loaderfrom
chore/34-collision-loader

Conversation

@Vatsal2005

@Vatsal2005 Vatsal2005 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Load authored collision beside each exported stage manifest and translate its polylines, boxes and markers into world pixels using the chunk grid. F2 toggles the authoring colours over the rendered stage. Physics consumers receive the same geometry without sampling artwork; reserved ledges and glide lifts stay available as data.

Issue

Closes #34

Stack

Base: chore/24-asset-loader. Human merges bottom up; retarget the next PR to main and merge origin/main into every open branch, never rebase.

Acceptance criteria

  • Reads walk, slide, one-way, climb, solid, no-go, hazard, interactable and spawn shapes, preserving custom metadata
  • Builds polylines and boxes in world pixels, including negative chunk coordinates and translated patrol bounds
  • F2 draws the authoring colours; ledges and glide lifts never become solids

Verification

  • Node 22: npm run typecheck, npm test (56 tests), npm run build; includes main integration at e8577ab
  • py -3.13 scripts/check_docs.py — 590 files
  • git diff --cached --check
  • Tests use all six real Rusty Creek collision files and the Hidden Garden file from main; no lane A files copied into this PR
  • Browser: F2 on/off, all three Rusty Creek chunks and the Hidden Garden; floor lines, ladders, walls, triggers and spawns align with the authored stage; no console errors
  • Vercel preview: GitHub states Vatsal2005 needs project access on Vercel to create deployments. A project owner must grant access; local checks pass.

Screenshots

Captured and shown in chat: tmp/verification/34-creek-left.png, 34-creek-center.png, 34-creek-right.png, 34-garden.png. GitHub's browser is signed out, so screenshot upload is unavailable. No verification images or art files are included in the code diff.

Validate every collision category and translate chunk-local geometry into world pixels using the exported grid. Retain pickup, patrol and story metadata without deriving physics from artwork.

Add an F2 authoring-colour overlay and test all six Rusty Creek files plus Hidden Garden, malformed data, offsets, reserved shapes and missing files.
Retain the human-merged build hooks, HUD, title and crossing scenes while keeping authored collision loading separate.
@Vatsal2005 Vatsal2005 self-assigned this Oct 23, 2026
@Vatsal2005
Vatsal2005 requested a review from arudaev October 23, 2026 21:33
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
wincs Error Error Oct 24, 2026 12:28am UTC

Request Review

@vercel

vercel Bot commented Oct 23, 2026

Copy link
Copy Markdown

@Vatsal2005 must be a member of the arudaev's projects team on Vercel to deploy.
- Click here to add @Vatsal2005 to the team.
- If you initiated this build, request access.
- If you're already a member of the arudaev's projects team, make sure that your Vercel account is connected to your GitHub account.

Learn more about collaboration on Vercel and other options here.

@github-actions github-actions Bot added the area:stage Chunks, layers, collision, clean/anomaly states label Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/4] feat: load authored collision with a debug overlay [4/5] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/5] feat: load authored collision with a debug overlay [4/6] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/6] feat: load authored collision with a debug overlay [4/7] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/7] feat: load authored collision with a debug overlay [4/8] feat: load authored collision with a debug overlay Oct 23, 2026
Carry the reviewed lane B foundation and latest human-merged integration upward without rewriting published history.
@arudaev
arudaev added this pull request to stack #129 October 23, 2026 22:12
@Vatsal2005 Vatsal2005 changed the title [4/8] feat: load authored collision with a debug overlay [4/9] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/9] feat: load authored collision with a debug overlay [4/10] feat: load authored collision with a debug overlay Oct 23, 2026
Carry human-merged lane A changes upward without rewriting published commits.
@Vatsal2005 Vatsal2005 changed the title [4/10] feat: load authored collision with a debug overlay [4/11] feat: load authored collision with a debug overlay Oct 23, 2026
Carry human-merged lane A changes upward without rewriting published commits.
@Vatsal2005 Vatsal2005 changed the title [4/11] feat: load authored collision with a debug overlay [4/12] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/12] feat: load authored collision with a debug overlay [4/13] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/13] feat: load authored collision with a debug overlay [4/14] feat: load authored collision with a debug overlay Oct 23, 2026
@Vatsal2005 Vatsal2005 changed the title [4/14] feat: load authored collision with a debug overlay [4/15] feat: load authored collision with a debug overlay Oct 24, 2026
@Vatsal2005 Vatsal2005 changed the title [4/15] feat: load authored collision with a debug overlay [4/16] feat: load authored collision with a debug overlay Oct 24, 2026
Carry human-merged lane A changes upward without rewriting published commits.
@arudaev
arudaev marked this pull request as ready for review October 24, 2026 01:34
@arudaev
arudaev merged commit 2cb1f6d into main Oct 24, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:stage Chunks, layers, collision, clean/anomaly states

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[M1-S6] Load collision annotation per chunk, with a debug overlay

2 participants