Add documentation for HideHeadbuttTree (#1152)
This commit is contained in:
@@ -79,6 +79,8 @@ HeadbuttTreeGFX:
|
|||||||
INCBIN "gfx/overworld/headbutt_tree.2bpp"
|
INCBIN "gfx/overworld/headbutt_tree.2bpp"
|
||||||
|
|
||||||
HideHeadbuttTree:
|
HideHeadbuttTree:
|
||||||
|
; Replaces all four headbutted tree tiles with tile $05
|
||||||
|
; Assumes any tileset with headbutt trees has grass at tile $05
|
||||||
xor a
|
xor a
|
||||||
ldh [hBGMapMode], a
|
ldh [hBGMapMode], a
|
||||||
ld a, [wPlayerDirection]
|
ld a, [wPlayerDirection]
|
||||||
@@ -92,7 +94,7 @@ HideHeadbuttTree:
|
|||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
|
|
||||||
ld a, $05 ; grass block
|
ld a, $05 ; grass tile
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hld], a
|
ld [hld], a
|
||||||
ld bc, SCREEN_WIDTH
|
ld bc, SCREEN_WIDTH
|
||||||
|
Reference in New Issue
Block a user