corrections
This commit is contained in:
+6
-1
@@ -1,6 +1,10 @@
|
||||
use crate::{collision::Collider, player::reset_player};
|
||||
use bevy::prelude::*;
|
||||
use rand::RngExt;
|
||||
use rand::SeedableRng;
|
||||
|
||||
//TODO: add chunk logic to obstacles
|
||||
// TODO: add seed logic to obstacles
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Obstacle;
|
||||
@@ -64,7 +68,8 @@ pub struct ObstaclePlugin;
|
||||
|
||||
impl Plugin for ObstaclePlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Startup, spawn_obstacles)
|
||||
app
|
||||
// .add_systems(Startup, spawn_obstacles)
|
||||
.init_resource::<RegenerateObstacles>()
|
||||
.add_systems(Update, regenerate_obstacles.after(reset_player));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user