Skip to content

Commit

Permalink
Add documentation for HideHeadbuttTree (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanmoore753 authored Nov 28, 2024
1 parent 961fad9 commit 8894e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/events/field_moves.asm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ HeadbuttTreeGFX:
INCBIN "gfx/overworld/headbutt_tree.2bpp"

HideHeadbuttTree:
; Replaces all four headbutted tree tiles with tile $05
; Assumes any tileset with headbutt trees has grass at tile $05
xor a
ldh [hBGMapMode], a
ld a, [wPlayerDirection]
Expand All @@ -92,7 +94,7 @@ HideHeadbuttTree:
ld h, [hl]
ld l, a

ld a, $05 ; grass block
ld a, $05 ; grass tile
ld [hli], a
ld [hld], a
ld bc, SCREEN_WIDTH
Expand Down

0 comments on commit 8894e29

Please sign in to comment.