Add MAP_OFFSET

This commit is contained in:
GriffinR committed 2021-10-09 13:19:27 -04:00
1 parent 28de627913
commit 862febe03a
28 files changed
+261 -391

No files matched your search

-3
View File
@@ -4,9 +4,6 @@
#define TOTAL_ROUNDS 20
#define PICKUP_ITEMS_PER_ROUND 10
#define FLOOR_WALKABLE_METATILE 0x28D
#define FLOOR_EXIT_METATILE 0x28E
#define HINT_EXIT_DIRECTION 0
#define HINT_REMAINING_ITEMS 1
#define HINT_REMAINING_TRAINERS 2
+4
View File
@@ -788,4 +788,8 @@
#define METATILE_SecretBase_SpikesMat_BottomMid 0x32A
#define METATILE_SecretBase_SpikesMat_BottomRight 0x32B
// gTileset_BattlePyramid
#define METATILE_BattlePyramid_Floor 0x28D
#define METATILE_BattlePyramid_Exit 0x28E
#endif // GUARD_METATILE_LABELS_H
+8
View File
@@ -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;