Compare commits
2 Commits
2ca8baf1b3
...
9f2ddc6621
Author | SHA1 | Date | |
---|---|---|---|
9f2ddc6621 | |||
58bd0c46ff |
@ -46,6 +46,7 @@ Start:
|
|||||||
game_loop:
|
game_loop:
|
||||||
call Wait_VBlank
|
call Wait_VBlank
|
||||||
call Read_Pad
|
call Read_Pad
|
||||||
|
call PC_Update
|
||||||
call Clear_OAM
|
call Clear_OAM
|
||||||
ld de, wShadowOAM
|
ld de, wShadowOAM
|
||||||
ld hl, Player
|
ld hl, Player
|
||||||
|
@ -124,12 +124,12 @@ PC_Update:
|
|||||||
jr nz, .last
|
jr nz, .last
|
||||||
ld c, 1
|
ld c, 1
|
||||||
.last:
|
.last:
|
||||||
ld a, [rPlayerX]
|
ld a, [Player_XPos]
|
||||||
add c
|
add c
|
||||||
ld [rPlayerX], a
|
ld [Player_XPos], a
|
||||||
ld a, [rPlayerY]
|
ld a, [Player_YPos]
|
||||||
add b
|
add b
|
||||||
ld [rPlayerY], a
|
ld [Player_YPos], a
|
||||||
.end:
|
.end:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user