diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-17 11:32:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 11:32:30 -0400 |
commit | 164590e37d67a385bf6479aafcbe5b351891bc0b (patch) | |
tree | c3d4cac1627512d166440ead47d9f2285c8b4044 /include/fieldmap.h | |
parent | a4a3c1c9e5a0026415330eab9bea2f8f3e83e0a3 (diff) | |
parent | 1f39c34ca47e43b0afccaabe97d1df19e3f0b39b (diff) |
Merge pull request #1512 from GriffinRichards/minor-constants
Add some misc constants/usage
Diffstat (limited to 'include/fieldmap.h')
-rw-r--r-- | include/fieldmap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fieldmap.h b/include/fieldmap.h index 5bcbe20ea..28da8da2a 100644 --- a/include/fieldmap.h +++ b/include/fieldmap.h @@ -9,6 +9,14 @@ #define NUM_PALS_TOTAL 13 #define MAX_MAP_DATA_SIZE 0x2800 +// Map coordinates are offset by 7 when using the map +// buffer because it needs to load sufficient border +// metatiles to fill the player's view (the player has +// 7 metatiles of view horizontally in either direction). +#define MAP_OFFSET 7 +#define MAP_OFFSET_W (MAP_OFFSET * 2 + 1) +#define MAP_OFFSET_H (MAP_OFFSET * 2) + #include "main.h" extern struct BackupMapLayout gBackupMapLayout; |