bevy-santa/src/map/map.rs
Crizomb 4b9101ad2c
All checks were successful
Build Bevy Game (Linux + Windows) / build-windows (push) Successful in 18m50s
Build Bevy Game (Linux + Windows) / build-linux (push) Successful in 18m38s
waves
2026-01-04 00:25:35 +01:00

17 lines
444 B
Rust

use bevy::prelude::*;
pub const MAP_SIZE: u32 = 1000;
pub const MAP_WIDTH: u32 = MAP_SIZE / 2;
pub const NEAR_LIMIT: f32 = (MAP_WIDTH as f32) * 0.8;
pub const RIGHT: Vec2 = Vec2::new(NEAR_LIMIT, 0.0);
pub const LEFT: Vec2 = Vec2::new(-NEAR_LIMIT, 0.0);
pub const TOP: Vec2 = Vec2::new(0.0, NEAR_LIMIT);
pub const BOTTOM: Vec2 = Vec2::new(0.0, -NEAR_LIMIT);
#[derive(Resource)]
pub struct MapBounds {
pub min: Vec2,
pub max: Vec2,
}