Skip to content

Add restart button to game over screen - #2

Open
wannerdev wants to merge 1 commit into
mainfrom
feature/restart-button-gameover
Open

Add restart button to game over screen#2
wannerdev wants to merge 1 commit into
mainfrom
feature/restart-button-gameover

Conversation

@wannerdev

Copy link
Copy Markdown
Owner

Description

Adds a restart button to the game over screen that allows players to quickly start a new game without refreshing.

Changes

  • Added component
  • Implemented system with hover effects
  • Button resets score (energy_rate to 0.0, energy_stored to 500.0)
  • Transitions back to gameplay screen on click
  • Styled to match existing game UI theme with retro aesthetic

Testing

  • Button appears at the bottom of the game over popup
  • Hover effect changes background color
  • Click resets game state and returns to gameplay

Related Issue

Fixes: Hard Mode Challenges - Restart button in game over screen

- Added RestartButton component
- Implemented handle_restart_button system with hover effects
- Button resets score and transitions back to gameplay
- Styled to match existing game UI theme
@wannerdev

Copy link
Copy Markdown
Owner Author

Found multiple attractors in world but n-body physics is not supported: bevy_ecs::system::query::Query<(&ldjam58::physics::directional_forces::Mass, &bevy_transform::components::transform::Transform), ((bevy_ecs::query::filter::Withldjam58::physics::calc_gravity::Attractor, bevy_ecs::query::filter::Withoutldjam58::physics::calc_gravity::Attractee), bevy_ecs::query::filter::Without<ldjam58::physics::directional_forces::GravityForce

the sun needs to be deleted before it can be spawned again!

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