summaryrefslogtreecommitdiff
path: root/include/global.fieldmap.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-10-02 11:44:50 -0400
committerGitHub <noreply@github.com>2019-10-02 11:44:50 -0400
commit8c86b656d2fa97fc5eb113e9807d49f48c715f8b (patch)
tree01e14b4dec7ef184ca50b9f0815a662590520045 /include/global.fieldmap.h
parent32693e94d844cb401aed91d066b9f5ad1eb440a7 (diff)
parent1bd678656c735bbeb603ccb80367c7a85f820f61 (diff)
Merge branch 'master' into modern_gcc
Diffstat (limited to 'include/global.fieldmap.h')
-rw-r--r--include/global.fieldmap.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index 81f805ee2..27b2b5593 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -1,6 +1,21 @@
#ifndef GUARD_GLOBAL_FIELDMAP_H
#define GUARD_GLOBAL_FIELDMAP_H
+#define COLLISION_DIR_SOUTH 0
+#define COLLISION_DIR_NORTH 1
+#define COLLISION_DIR_WEST 2
+#define COLLISION_DIR_EAST 3
+#define COLLISION_DIR_ALL (COLLISION_DIR_NORTH | COLLISION_DIR_SOUTH | COLLISION_DIR_EAST | COLLISION_DIR_WEST)
+
+#define METATILE_COLLISION_MASK 0x0C00
+#define METATILE_ID_MASK 0x03FF
+#define METATILE_ID_UNDEFINED 0x03FF
+#define METATILE_ELEVATION_SHIFT 0x000C
+#define METATILE_COLLISION_SHIFT 0x000A
+#define METATILE_ELEVATION_MASK 0xF000
+
+#define METATILE_ID(tileset, name) (METATILE_##tileset##_##name)
+
enum
{
CONNECTION_SOUTH = 1,