corrections

This commit is contained in:
2026-09-18 17:40:57 +02:00
parent 0e5c2407ed
commit 5d422ecef0
5 changed files with 24 additions and 11 deletions
+6 -1
View File
@@ -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));
}