Skip to content

feat(puzzle): introduce Sunflower Turnstiles with 90-degree dynamic deflections, procedural generator integration, and Skia spring animations - #6

Merged
Shahidzbi4213 merged 1 commit into
mainfrom
feat/sunflower-turnstiles
Oct 10, 2026
Merged

Shahidzbi4213 merged 1 commit into
mainfrom
feat/sunflower-turnstiles

Conversation

@Shahidzbi4213

Copy link
Copy Markdown
Owner

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

  1. Core Engine Data Model & Raycaster (:core-engine):

    • Added SunflowerTurnstile model with 90° clockwise rotation (NORTH -> EAST -> SOUTH -> WEST -> NORTH).
    • Extended Board raycasting (getCorridorFrom) to dynamically deflect trajectories by 90° along turnstile orientation.
    • Implemented rotateTurnstiles to pivot traversed turnstiles post-launch and trigger board-wide eye state recalculation.
    • Preserved full undo stack support in GameEngine.
  2. Procedural Level Generator & Solvability Verifier (:core-engine):

    • Updated LevelConfig with includeTurnstiles and turnstileCount.
    • Placed turnstiles in interior grid coordinates to avoid perimeter blockage.
    • Enhanced verifySolvable with forward step simulation and state-hashing backtracking search (searchSolvable) to guarantee 100% solvability across all generated boards.
  3. Skia Canvas Presentation & Spring Animation (:shared):

    • Implemented drawSunflowerTurnstile in TrayRenderer with recessed floor well, 12 layered golden petals, honey-amber seed disc, and directional leaf chevron.
    • Implemented damped harmonic oscillator spring rotation animation in GameViewModel and SkiaBoardView for 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.

…eflections, procedural generator integration, and Skia spring animations
@Shahidzbi4213
Shahidzbi4213 merged commit 8771280 into main Oct 10, 2026
2 checks passed
@Shahidzbi4213
Shahidzbi4213 deleted the feat/sunflower-turnstiles branch October 10, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants