Skip to content

feat(ui): replace death screen space bar prompt with tappable restart button#151

Merged
f1cklepickle merged 2 commits intomainfrom
feat/ui-restart-button-139
Mar 6, 2026
Merged

feat(ui): replace death screen space bar prompt with tappable restart button#151
f1cklepickle merged 2 commits intomainfrom
feat/ui-restart-button-139

Conversation

@f1cklepickle
Copy link
Copy Markdown
Owner

Why

Death screen restart was spacebar-only and inaccessible on Android/touch devices.
We need one restart flow that works for both touch and keyboard inputs.

What changed

  • Added a dedicated game-over UI controller to own restart button wiring and presentation
  • Kept Space restart behavior while adding tappable restart support
  • Updated death-screen messaging to touch-friendly copy
  • Added EditMode and PlayMode regression coverage for restart behavior
  • Logged coverage update in Docs/TEST_LOG.md

How to test

  1. Open MainPrototype
  2. Press Play, die, then verify a tappable restart button appears and restarts the scene
  3. Press Space on game-over and verify restart still works
  4. Run tests:
    • EditMode (GameOverRestartContractsTests, GameManagerKeyboardRestartContractsTests)
    • PlayMode (DeathScreenRestartPlayTests)

Checklist

All items must be checked. If not applicable, check and mark "N/A".

  • Unit tests (EditMode) added or updated
  • PlayMode test or manual validation included
  • Demo scene updated (if player-visible)
  • Prefab links, tags, and layers validated N/A
  • README / Docs touched (if applicable)

Related

@f1cklepickle f1cklepickle added feature New feature or request testing Work specifically related to adding or fixing test setups docs Updates to documentation or guides. ui UI menus, HUD, game over screen changes. android Android-specific work such as builds, packaging, device testing, or platform setup. labels Mar 6, 2026
@f1cklepickle f1cklepickle merged commit 1f6bb06 into main Mar 6, 2026
4 checks passed
@f1cklepickle f1cklepickle deleted the feat/ui-restart-button-139 branch March 6, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android-specific work such as builds, packaging, device testing, or platform setup. docs Updates to documentation or guides. feature New feature or request testing Work specifically related to adding or fixing test setups ui UI menus, HUD, game over screen changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): replace death screen space bar prompt with tappable restart button

1 participant