game states cleanup
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ use crate::player::move_player;
|
|||||||
pub struct MainCamera;
|
pub struct MainCamera;
|
||||||
|
|
||||||
fn spawn_main_camera(mut commands: Commands) {
|
fn spawn_main_camera(mut commands: Commands) {
|
||||||
commands.spawn((Camera2d, MainCamera));
|
commands.spawn((Camera2d, MainCamera, IsDefaultUiCamera));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Follow the player with the camera
|
// Follow the player with the camera
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
use crate::{collision::Collider, player::debug_game_over};
|
use crate::collision::Collider;
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use rand::RngExt;
|
use rand::RngExt;
|
||||||
use rand::SeedableRng;
|
use rand::SeedableRng;
|
||||||
|
|||||||
Reference in New Issue
Block a user