Skip to content

feat(platformer): draw the Approve Shield as a bubble around Hoppy - #110

Merged
juanpflores merged 1 commit into
mainfrom
feat/platformer-shield-bubble
Nov 24, 2026
Merged

juanpflores merged 1 commit into
mainfrom
feat/platformer-shield-bubble

Conversation

@juanpflores

@juanpflores juanpflores commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Collecting the Approve Shield in Enchanted Repo, Bay Area Blitz and Orbital Ops used to tint Hoppy's sprite green while player.shield was true, which read as a status effect rather than a shield. The player now owns a ShieldBubble child (modes/platformer/shield_bubble.gd) drawn in front of the sprite: a translucent light-blue ellipse with a chunky pixel highlight that breathes gently while the shield holds, and swells and fades (0.22 s) when the shield absorbs a hit or is otherwise lost. Death clears it instantly.

shield is now a property whose setter raises or pops the bubble, so every existing path (the level pickup, damage(), the comment-trap burst, tests that set the flag directly) keeps its behaviour. The shield still absorbs exactly one hit with no health loss.

The green tint is removed for the shield only. The LGTM boost tint, hit flash and invulnerability blink are unchanged.

Independent of #108 (fix/enchanted-ground-seams): none of the files it touches are edited here.

Testing

  • uv run --python 3.12 --no-project python tools/tests/run_tests.py --godot /Applications/Godot.app/Contents/MacOS/Godot -k platformer -k enchanted -k orbital -k bay: 12 passed, 1 failed. The failure is orbital_ops_smoke "Spawn settles on visible station floor", and it fails identically with main's player.gd swapped back in, so it is pre-existing and unrelated to this change.
  • New tests/platformer_shield.gd (headless, auto-discovered): bubble hidden on spawn, raised on pickup (via setter and via the real Bay Area pickup), no green modulate, pops on an absorbed hit with no health loss, hidden after the pop, boost tint and i-frames still work, re-raise while popping, cleared on death. 16/16 pass.
  • python3 tools/checks/exit_leak.py --godot …: all 11 scenarios pass.
  • gdlint clean on the new and changed scripts (one pre-existing long line in player.gd:74 left alone).
  • Graphical run with --always-on-top in Enchanted Repo to look at the bubble on a real pickup and pop.

Screenshots / video

Hoppy inside the shield bubble

Checklist

  • The PR title follows Conventional Commits (feat(runner): ..., fix(platformer): ...)
  • Added or updated tests for changed behavior
  • New or changed assets are listed in ASSETS_LICENSES.md with a redistributable license (no new assets; the bubble is drawn in code, the preview image is a project screenshot)
  • Docs in docs/ are updated if behavior or controls changed

Summary by CodeRabbit

  • New Features
    • A translucent bubble now appears around Hoppy while a shield is held and pops when it absorbs a hit.
    • Shield damage in Orbital Ops respects Bay Area’s shared shields and invulnerability.
  • Bug Fixes
    • Shield effects now clear when Hoppy is defeated, and the shield no longer changes the character’s color.

Picking up the shield used to tint Hoppy's sprite green while player.shield
was true, which read as a status effect rather than a shield. The player now
owns a ShieldBubble child drawn in front of the sprite: a translucent
light-blue ellipse with a chunky highlight that breathes while the shield
holds and swells and fades when the shield absorbs a hit or is otherwise
lost. The shield flag is now a property whose setter raises or pops the
bubble, so every existing path (level pickup, damage(), the comment-trap
burst, tests that set it directly) stays unchanged in behaviour.

The green tint is removed for the shield only; the LGTM boost tint, hit flash
and invulnerability blink are untouched. Death clears the bubble instantly.

Adds tests/platformer_shield.gd (headless) and a preview image, and notes
the bubble in the three platformer docs.
@juanpflores
juanpflores requested a review from CR-Trey as a code owner November 24, 2026 01:26
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The platformer player now displays a translucent bubble while the shield is active. The bubble pops when the shield is lost and clears immediately on death. The change removes the shield’s green sprite tint and adds automated tests and route documentation.

Changes: Platformer shield bubble

Layer / File(s) Summary
Bubble drawing and animation
hoppys-adventure-arcade/modes/platformer/shield_bubble.gd, hoppys-adventure-arcade/modes/platformer/shield_bubble.gd.uid
Adds a bubble that starts hidden, pulses while active, and swells and fades when it pops. The bubble can also be cleared immediately.
Player shield integration
hoppys-adventure-arcade/modes/platformer/player.gd
The shield property raises or pops the bubble when its value changes. The player creates the bubble as a child and clears it on death. The green tint now indicates only an active boost.
Shield tests and route documentation
hoppys-adventure-arcade/tests/platformer_shield.gd, hoppys-adventure-arcade/tests/platformer_shield.gd.uid, docs/bay-area-blitz.md, docs/enchanted-repo.md, docs/orbital-ops.md
Adds tests for bubble visibility, shield behavior, and related player effects. Updates route descriptions and Bay Area Blitz smoke-suite coverage.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant BayAreaBlitzPickup as Bay Area Blitz pickup
  participant Player
  participant ShieldBubble
  BayAreaBlitzPickup->>Player: Sets shield to true
  Player->>ShieldBubble: Calls raise()
  Player->>ShieldBubble: Calls pop() when shield becomes false
  Player->>ShieldBubble: Calls clear() on death
Loading
Merge Risk: Minimal · up to 27f0b · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Architecture risk: Low · up to 27f0b

The change affects 2 systems.

Changed systems: hoppys-adventure-arcade, docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — hoppys-adventure-arcade (service) was modified; 5 changed files map to changed impact.
  • observed — docs (service) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/bay-area-blitz.md: The Shield description now adds that a translucent bubble indicates the shield is held and pops when it absorbs a hit.
  • observed — Modified behavior in docs/bay-area-blitz.md: The smoke-suite coverage description now includes the shield bubble in platformer_shield.gd.
  • observed — Modified behavior in docs/enchanted-repo.md: The route description adds the shield’s visible bubble and its pop-on-hit behavior, and includes a preview image. Other route details were retained.
  • observed — Modified behavior in docs/orbital-ops.md: The vent-damage description adds that a held shield appears as the shared bubble around Hoppy; the previous text mentioned shared shields and invulnerability but not the visual indicator.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(platformer): draw the Approve Shield as a bubble around Hoppy" follows Conventional Commits and matches the main change. The PR replaces the green sprite tint on the shield with a tran…
Description check Passed The description follows the template. Summary explains what changed and why, though it does not link an issue with "Closes #123" syntax; it references #108 as related only. Testing lists exact command…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(platformer): draw the Approve Shield as a bubble around Hoppy" follows Conventional Commits and matches the main change. The PR replaces the green sprite tint on the shield with a translucent ShieldBubble child that raises on pickup and pops on an absorbed hit. The title is specific and accurate to the changeset.

Full details: Description check

Explanation

The description follows the template. Summary explains what changed and why, though it does not link an issue with "Closes #123" syntax; it references #108 as related only. Testing lists exact commands and results, including one pre-existing failure. Screenshots/video section includes an image of the bubble. Checklist items are marked complete and match the described work. The missing issue link is a minor gap that does not change the overall assessment.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9b4cfed and 27f0b30.

Files ignored due to path filters: 1

  • docs/previews/enchanted-repo/shield-bubble.png is excluded by !**/*.png
Files selected for processing: 8

  • docs/bay-area-blitz.md
  • docs/enchanted-repo.md
  • docs/orbital-ops.md
  • hoppys-adventure-arcade/modes/platformer/player.gd
  • hoppys-adventure-arcade/modes/platformer/shield_bubble.gd
  • hoppys-adventure-arcade/modes/platformer/shield_bubble.gd.uid
  • hoppys-adventure-arcade/tests/platformer_shield.gd
  • hoppys-adventure-arcade/tests/platformer_shield.gd.uid

Included review availability: This review used your included allowance. Your plan provides up to 100 included reviews per hour; 99 remain after this review.

@juanpflores
juanpflores merged commit 4b6761f into main Nov 24, 2026
6 checks passed
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.

1 participant