forked from ISSOtm/Aevilia-GB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maps.asm
51 lines (41 loc) · 1.21 KB
/
maps.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
INCLUDE "macros.asm"
INCLUDE "constants.asm"
SECTION "Map pointers", ROMX[$4000]
MapROMBanks:: ; MAKE SURE THIS IS 256-BYTE ALIGNED!!
db BANK(StarthamMap)
db BANK(TestHouse)
db BANK(IntroMap)
db BANK(StarthamForestMap)
db BANK(PlayerHouse)
db BANK(PlayerHouse2F)
db BANK(StarthamHouse2)
db BANK(StarthamLargeHouse)
MapPointers::
dw StarthamMap
dw TestHouse
dw IntroMap
dw StarthamForestMap
dw PlayerHouse
dw PlayerHouse2F
dw StarthamHouse2
dw StarthamLargeHouse
; ** Map header structure : **
; Byte - Tileset ID
; Word - Map script pointer
; (must be in same bank as map)
; Byte - Map width
; Byte - Map height
; Word - Map loading script pointer
; Byte - Number of interactions
; Int_stream - Interactions, stored sequentially
; Byte - A constant identifying the following structure
; Struct - The corresponding structure
; Bytestream - Blocks
INCLUDE "maps/startham.asm"
INCLUDE "maps/testhouse.asm"
INCLUDE "maps/intro.asm"
INCLUDE "maps/startham_forest.asm"
INCLUDE "maps/playerhouse.asm"
INCLUDE "maps/playerhouse2f.asm"
INCLUDE "maps/starthamhouse2.asm"
INCLUDE "maps/starthamlargehouse1f.asm"