summaryrefslogtreecommitdiff
path: root/src/constants.rs
blob: 367e595a9d51d5044353175eccd13f1123d1273d (plain)
1
2
3
4
5
6
7
8
9
10
11
pub const TILE_WIDTH: f32 = 16.0;
pub const TILE_HEIGHT: f32 = 16.0;
pub const TILE_SCALE: f32 = 3.0;

pub const PLAYER_SPEED: f32 = 5.0;

pub const FLIP_HORIZONTALLY_FLAG: u32 = 0x8000_0000;
pub const FLIP_VERTICALLY_FLAG: u32 = 0x4000_0000;
pub const FLIP_DIAGONALLY_FLAG: u32 = 0x2000_0000;
pub const ALL_FLIP_FLAGS: u32 =
    FLIP_DIAGONALLY_FLAG | FLIP_HORIZONTALLY_FLAG | FLIP_VERTICALLY_FLAG;