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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user