Add "start" and "quit" buttons to title screen

I'm stealing the game-over plugin's button handling for use in the main
menu. I guess it turns out that my widgets are more generic than
intended.
This commit is contained in:
2025-08-13 17:00:29 -05:00
parent 0aefc96f7a
commit d15b96ef48
2 changed files with 39 additions and 44 deletions

View File

@@ -81,7 +81,7 @@ impl Plugin for AsteroidPlugin {
.add_event::<events::AsteroidDestroy>()
.add_event::<events::ShipDestroy>()
.add_event::<events::BulletDestroy>();
app.insert_state(GameState::GameOver);
app.insert_state(GameState::TitleScreen);
}
}