map bounds
All checks were successful
Build Bevy Game (Linux) / build (push) Successful in 18m58s

This commit is contained in:
Crizomb 2025-12-27 17:54:55 +01:00
parent 1273953723
commit 57db0aff22
5 changed files with 54 additions and 8 deletions

17
src/map.rs Normal file
View file

@ -0,0 +1,17 @@
use bevy::{prelude::*, render::renderer};
#[derive(Component)]
pub struct MapRoot;
#[derive(Resource)]
pub struct MapBounds {
pub min: Vec2,
pub max: Vec2,
}
pub fn setup_map_bounds(mut commands: Commands) {
commands.insert_resource(MapBounds {
min: Vec2::new(-320.0, -240.0),
max: Vec2::new(320.0, 240.0),
});
}