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