Repository navigation
Conversation
Cave Run's level gains a hidden collision object layer with a polyline ramp out of the first lava pit, and the game moves the player through a physics.World so tilemap.ObjectLayer.PhysicsBodies shapes collide as static terrain. A test drops a body on the ramp's landing and checks it rests there with full hearts. The action3d orbit camera now sweeps a physics3d sphere along its arm instead of casting a ray, so a wall corner beside the center line pulls the camera in instead of clipping the lens. A test places a corner a ray misses and checks the camera keeps the probe's radius from it. The level generator writes the new layer; docs/en, docs/zh, the example and template READMEs, a changelog fragment and an agent note record both changes.
This branch has not been deployed
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.
Summary
Cave Run's Tiled level now carries a hidden
collisionobject layer with a polyline ramp out of the first lava pit, which the game builds into static terrain withtilemap.ObjectLayer.PhysicsBodiesinside aphysics.Worldthat the player moves through, so the player walks on the ramp while tile collision behaves as before; its test drops a body on the ramp's landing, where both tile layers are empty above the lava, and checks it rests there with full hearts. Theaction3dorbit camera now sweeps aphysics3dsphere along its arm instead of casting a ray, so a wall corner beside the center line pulls the camera in instead of clipping the lens; its test puts a pillar corner 0.05 m off the arm where a ray misses and checks the camera stays the probe's radius from it. Cave Run's immersive system bars were already delivered by #2387, so this PR covers the other two acceptance items plus docs, the level generator, a changelog fragment and an agent note; the template copy underinternal/gamecli/_templates/projects/action3dmatches its module.Related issue
Fixes #1490
Verification
gofmt -l .produces no outputgo tool nsgo test ./...passes from the repository root — not run; the affected packages pass:./examples/caverun(27 tests),./template/action3d/template(32),./internal/gamecli/_templates/projects/action3d(32), and./internal/gamecli -run TestTemplatesMatchTemplateModulesgo tool nsgo check -target macos,windows,linux,android,webpasses from the repository root — not run;go tool nsgo checkpasses for the three affected packagesgo tool nsgo check -target ios,ios_simulatorpasses (if on macOS with Xcode) — not runbun run buildpasses (fordocs/orwebsite/changes)docs/en/anddocs/zh/updated (when applicable)Screenshots
None: Cave Run's new collision layer is hidden by design and changes no art, and the action3d camera change only differs in a wall corner, which the new test checks numerically.