References and crates and stuffs

This commit is contained in:
2024-11-05 14:31:39 +02:00
parent 26d7f3b40a
commit 8686f0872a
2 changed files with 10 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
use bevy::{prelude::*, utils::HashSet};
use bevy_ecs_ldtk::prelude::*;
use crate::{Wall, GRID_SIZE};
use crate::level_structure::Wall;
#[derive(Default, Component)]
pub(crate) struct Player;
@@ -86,8 +86,8 @@ fn cache_wall_locations(
let new_level_walls = LevelWalls {
wall_locations,
level_width: level.px_wid / GRID_SIZE,
level_height: level.px_hei / GRID_SIZE,
level_width: level.px_wid / crate::GRID_SIZE,
level_height: level.px_hei / crate::GRID_SIZE,
};
*level_walls = new_level_walls;