|
|
@ -1,4 +1,6 @@ |
|
|
|
INCLUDE "hardware.inc" |
|
|
|
INCLUDE "util.inc" |
|
|
|
|
|
|
|
INCLUDE "png/map/intro.inc" |
|
|
|
|
|
|
|
SECTION "BG Data", WRAM0 |
|
|
@ -7,6 +9,8 @@ BG_COLLISION_DATA:: dw |
|
|
|
BG_MAP_WIDTH:: db |
|
|
|
BG_MAP_HEIGHT:: db |
|
|
|
|
|
|
|
BG_SCROLLING:: db |
|
|
|
|
|
|
|
SECTION "BG Code", ROM0 |
|
|
|
|
|
|
|
MACRO update_map_info |
|
|
@ -24,6 +28,8 @@ MACRO update_map_info |
|
|
|
ENDM |
|
|
|
|
|
|
|
BG_Init:: |
|
|
|
SET8 BG_SCROLLING, 0 |
|
|
|
|
|
|
|
; copy map |
|
|
|
ld e, intro_HEIGHT |
|
|
|
ld bc, _SCRN0 |
|
|
@ -58,3 +64,6 @@ BG_Init:: |
|
|
|
update_map_info intro_COLLISION, intro_WIDTH, intro_HEIGHT |
|
|
|
|
|
|
|
ret |
|
|
|
|
|
|
|
BG_Update:: |
|
|
|
ret |