lots of adds
This commit is contained in:
+16
-4
@@ -1,8 +1,13 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
// Fixed game screen
|
||||
pub const SCREEN_WIDTH: f32 = 720.0;
|
||||
pub const SCREEN_HEIGHT: f32 = 1080.0;
|
||||
pub const SCREEN_ASPECT: f32 = SCREEN_WIDTH / SCREEN_HEIGHT; // 2:3
|
||||
|
||||
// Grid
|
||||
pub const CELL_SIZE: f32 = 32.0;
|
||||
pub const TERRAIN_COLS: i32 = 60;
|
||||
pub const TERRAIN_COLS: i32 = 21;
|
||||
pub const CHUNK_ROWS: i32 = 32;
|
||||
|
||||
pub const TERRAIN_WIDTH: f32 = CELL_SIZE * TERRAIN_COLS as f32;
|
||||
@@ -15,7 +20,14 @@ pub const MARGIN_BELLOW: f32 = 400.0;
|
||||
|
||||
// Player
|
||||
pub const PLAYER_HITBOX: Vec2 = Vec2::new(20.0, 40.0);
|
||||
pub const FALL_SPEED: f32 = 600.0;
|
||||
pub const DIVE_SPEED: f32 = 1000.0;
|
||||
pub const HORIZONTAL_SPEED: f32 = 500.0;
|
||||
pub const FALL_SPEED: f32 = 500.0;
|
||||
pub const DIVE_SPEED: f32 = 2700.0;
|
||||
pub const HORIZONTAL_SPEED: f32 = 450.0;
|
||||
pub const START_POSITION: Vec3 = Vec3::new(0.0, 0.0, 2.0);
|
||||
pub const CAMERAE_OFFSET: f32 = 280.0;
|
||||
|
||||
// Validator
|
||||
pub const INERTIA_MARGIN: f32 = 4.0;
|
||||
pub const DESIGN_LATERAL_SPEED_RATIO: f32 = 0.6;
|
||||
pub const DESIGN_SLOPE_COLS_PER_ROW: f32 =
|
||||
HORIZONTAL_SPEED * DESIGN_LATERAL_SPEED_RATIO / FALL_SPEED;
|
||||
|
||||
Reference in New Issue
Block a user