Remove unused map environment with index 0 (#7), Implement function to draw the overworld textbox (#10)

This commit is contained in:
xCrystal
2023-08-07 13:23:57 +02:00
parent f64bbf700d
commit be5f3ad6e1
24 changed files with 208 additions and 41 deletions

View File

@@ -48,6 +48,10 @@ LoadFrame::
farcall _LoadFrame
ret
LoadOverworldFontAndFrame::
farcall _LoadOverworldFontAndFrame
ret
DecompressRequest2bpp::
push de
ld a, BANK(sScratch)

View File

@@ -127,6 +127,14 @@ SpeechTextbox::
ld b, TEXTBOX_INNERH
ld c, TEXTBOX_INNERW
jp Textbox
; decoord TEXTBOX_X, TEXTBOX_Y
; lb bc, 4, SCREEN_WIDTH - 2
; push bc
; push de
; farcall OverworldTextbox
; pop hl
; pop bc
; jp TextboxPalette
RadioTerminator::
ld hl, .stop

View File

@@ -129,8 +129,6 @@ UpdateBGMap::
jr z, .Attr
; BG Map 1
dec a ; useless
ldh a, [hBGMapAddress]
ld l, a
ldh a, [hBGMapAddress + 1]

View File

@@ -41,7 +41,7 @@ CloseText::
call UpdatePlayerSprite
xor a
ldh [hBGMapMode], a
farcall LoadOverworldFont
call LoadOverworldFontAndFrame
ret
OpenText::