summaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-04-10 13:08:00 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-04-10 13:08:00 +0200
commitd8a5e679e931c302da03d675caf4bd208dbde988 (patch)
treebd568a7f62403bdfdf3e3fbc41e434f9fa118b66 /src/constants.rs
parent07eb2dc0cbeaa7eb64645a86bd11842717a107a6 (diff)
parent893805baa14972dc6c1c28170856097bb54bf280 (diff)
Merge branch 'bevy_5'
moved to bevy
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs43
1 files changed, 35 insertions, 8 deletions
diff --git a/src/constants.rs b/src/constants.rs
index f9a5003..86bbe5e 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -1,8 +1,35 @@
-pub const TILE_SCALE: f32 = 3.0;
-pub const TILE_HEIGHT: f32 = 16.0;
-pub const TILE_WIDTH: f32 = 16.0;
-pub const BORDER_SIZE: f32 = 3.0;
-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 TILE_SCALE: f32 = 3.5;
+pub const TILE_SIZE: f32 = 16.0;
+pub const WINDOW_HEIGHT: f32 = 600.0;
+pub const WINDOW_WIDTH: f32 = 800.0;
+pub const GRID_SIZE: usize = 8;
+
+pub const TILESHEET_EXPLOSION1: u32 = 0;
+pub const TILESHEET_EXPLOSION2: u32 = 1;
+pub const TILESHEET_EXPLOSION3: u32 = 2;
+pub const TILESHEET_EXPLOSION4: u32 = 3;
+pub const TILESHEET_EXPLOSION5: u32 = 4;
+
+pub const TILESHEET_GREEN: u32 = 5;
+pub const TILESHEET_YELLOW: u32 = 6;
+pub const TILESHEET_BLUE: u32 = 7;
+pub const TILESHEET_RED: u32 = 8;
+pub const TILESHEET_PURPLE: u32 = 9;
+
+pub const TILESHEET_STAR1: u32 = 10;
+pub const TILESHEET_STAR2: u32 = 11;
+pub const TILESHEET_STAR3: u32 = 12;
+//pub const TILESHEET_X: u32 = 13;
+//pub const TILESHEET_X: u32 = 14;
+
+pub const TILESHEET_COSMONAUT1: u32 = 15;
+pub const TILESHEET_VISOR1: u32 = 16;
+pub const TILESHEET_VISOR2: u32 = 17;
+//pub const TILESHEET_X: u32 = 18;
+//pub const TILESHEET_X: u32 = 19;
+
+pub const TILESHEET_COSMONAUT2: u32 = 20;
+pub const TILESHEET_VISOR3: u32 = 21;
+pub const TILESHEET_VISOR4: u32 = 22;
+//pub const TILESHEET_X: u32 = 23;
+//pub const TILESHEET_X: u32 = 24;