summaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-06-22 06:36:40 -0500
committertom barrett <spalf0@gmail.com>2019-06-22 06:36:40 -0500
commit324fce116cc8daacf64ba49ecc8a2b833aaf4a40 (patch)
treea1f9fe8b33311d1207408d158b33a346e29d84b2 /src/constants.rs
parentc182662e06b3134e51db938371a0b313d2948d7c (diff)
reordered layers, now added rotation of tiles, fixed tileset mapping bug
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 1af4324..367e595 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -3,3 +3,9 @@ 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;