diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-03-21 18:29:09 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-03-21 18:29:09 +0100 |
commit | 4312f3b7eedbf6cdbe012be6eea1d45afd82de12 (patch) | |
tree | b0ca73f322416edeabfd29a9b48b311bb0ee26e9 /src/constants.rs | |
parent | 965ccb56c4c58066939d74bea22c2a9b59416d0d (diff) |
start using constants for the tilesheet indexes
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs index 5952fa5..c33e30b 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -6,3 +6,28 @@ pub const SHIFT_X: f32 = 50.0; pub const SHIFT_Y: f32 = 50.0; pub const COLUMNS: usize = 8; pub const ROWS: usize = 8; + +pub const TILESHEET_GREEN: u32 = 0; +pub const TILESHEET_YELLOW: u32 = 1; +pub const TILESHEET_BLUE: u32 = 2; +pub const TILESHEET_RED: u32 = 3; + +pub const TILESHEET_EXPLOSION1: u32 = 4; +pub const TILESHEET_EXPLOSION2: u32 = 5; +pub const TILESHEET_EXPLOSION3: u32 = 6; +pub const TILESHEET_EXPLOSION4: u32 = 7; + +pub const TILESHEET_COSMONAUT1: u32 = 8; +pub const TILESHEET_VISOR1: u32 = 9; +pub const TILESHEET_VISOR2: u32 = 10; +pub const TILESHEET_NONE1: u32 = 11; + +pub const TILESHEET_COSMONAUT2: u32 = 12; +pub const TILESHEET_VISOR3: u32 = 13; +pub const TILESHEET_VISOR4: u32 = 14; +pub const TILESHEET_NONE2: u32 = 15; + +pub const TILESHEET_STAR1: u32 = 16; +pub const TILESHEET_STAR2: u32 = 17; +pub const TILESHEET_STAR3: u32 = 18; +pub const TILESHEET_NONE3: u32 = 19; |