Skip to content

Commit

Permalink
Add documentation for HideHeadbuttTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Nov 29, 2024
1 parent 9b19999 commit 3257bc1
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 @@ -74,6 +74,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 @@ -87,7 +89,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 3257bc1

Please sign in to comment.