Repository navigation
feat(puzzle): introduce Sunflower Turnstiles with 90-degree dynamic deflections, procedural generator integration, and Skia spring animations - #6
Merged
Conversation
…eflections, procedural generator integration, and Skia spring animations
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
Introduces Sunflower Turnstiles (Rotating Deflectors) to Squish Out, adding dynamic spatial trajectory deflections and post-launch rotation state changes to break the linear edge-peeling heuristic.
Features & Architecture
Core Engine Data Model & Raycaster (
:core-engine):SunflowerTurnstilemodel with 90° clockwise rotation (NORTH -> EAST -> SOUTH -> WEST -> NORTH).Boardraycasting (getCorridorFrom) to dynamically deflect trajectories by 90° along turnstile orientation.rotateTurnstilesto pivot traversed turnstiles post-launch and trigger board-wide eye state recalculation.GameEngine.Procedural Level Generator & Solvability Verifier (
:core-engine):LevelConfigwithincludeTurnstilesandturnstileCount.verifySolvablewith forward step simulation and state-hashing backtracking search (searchSolvable) to guarantee 100% solvability across all generated boards.Skia Canvas Presentation & Spring Animation (
:shared):drawSunflowerTurnstileinTrayRendererwith recessed floor well, 12 layered golden petals, honey-amber seed disc, and directional leaf chevron.GameViewModelandSkiaBoardViewfor 120 FPS spring overshoot when turnstiles are triggered.Verification
:core-engine:jvmTest: 31/31 tests passed (including 30-seed diverse batch across grid sizes and difficulty tiers).:shared:testAndroidHostTest: 27/27 tests passed.:androidApp:assembleDebug: BUILD SUCCESSFUL.