gdritter repos wenaglia / master src / consts.rs
master

Tree @master (Download .tar.gz)

consts.rs @masterraw · history · blame

#![allow(dead_code)]

// constants used elsewhere
pub const SPEED: u32 = 2;
pub const TILE_SIZE: f32 = 24.0;
pub const HALF_TILE: f32 = TILE_SIZE / 2.0;
pub const QUARTER_TILE: f32 = TILE_SIZE / 4.0;
pub const BOARD_WIDTH: usize = 16;
pub const BOARD_HEIGHT: usize = 12;
pub const WINDOW_WIDTH: f32 = BOARD_WIDTH as f32 * (TILE_SIZE * SCALE);
pub const WINDOW_HEIGHT: f32 = BOARD_HEIGHT as f32 * (TILE_SIZE * SCALE);
pub const SCALE: f32 = 3.0;
pub const TILED_FALSE: tiled::PropertyValue = tiled::PropertyValue::BoolValue(false);