This commit is contained in:
parent
1273953723
commit
57db0aff22
5 changed files with 54 additions and 8 deletions
17
src/map.rs
Normal file
17
src/map.rs
Normal 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),
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue