mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 23:22:26 +13:00
Move all code out of home.asm into home/
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
This commit is contained in:
parent
51ac538c25
commit
bbf2f51a02
35 changed files with 1754 additions and 1758 deletions
20
home/reset_player_sprite.asm
Normal file
20
home/reset_player_sprite.asm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
ResetPlayerSpriteData::
|
||||
ld hl, wSpriteStateData1
|
||||
call ResetPlayerSpriteData_ClearSpriteData
|
||||
ld hl, wSpriteStateData2
|
||||
call ResetPlayerSpriteData_ClearSpriteData
|
||||
ld a, $1
|
||||
ld [wSpritePlayerStateData1PictureID], a
|
||||
ld [wSpritePlayerStateData2ImageBaseOffset], a
|
||||
ld hl, wSpritePlayerStateData1YPixels
|
||||
ld [hl], $3c ; set Y screen pos
|
||||
inc hl
|
||||
inc hl
|
||||
ld [hl], $40 ; set X screen pos
|
||||
ret
|
||||
|
||||
; overwrites sprite data with zeroes
|
||||
ResetPlayerSpriteData_ClearSpriteData::
|
||||
ld bc, $10
|
||||
xor a
|
||||
jp FillMemory
|
||||
Loading…
Add table
Add a link
Reference in a new issue