@@ -41,7 +41,7 @@ InitializePlayer::
4141 ld [ wPlayerPositionX + 1 ], a
4242 ld [ wPlayerPositionY + 1 ], a
4343
44-
44+
4545CopyPlayerTileDataIntoVRAM:
4646 ; Copy the player's tile data into VRAM
4747 ld de , playerShipTileData
@@ -77,7 +77,7 @@ UpdatePlayer_HandleInput:
7777 and PADF_A
7878 call nz , TryShoot
7979; ANCHOR_END: player-update-start
80-
80+
8181
8282; ANCHOR: player-update-flashing
8383 ld a , [ mPlayerFlash + 0 ]
@@ -99,7 +99,7 @@ UpdatePlayer_UpdateSprite_CheckFlashing:
9999 ld a , c
100100 sbc 0
101101 ld c , a
102-
102+
103103
104104UpdatePlayer_UpdateSprite_DecreaseFlashing:
105105
@@ -144,7 +144,7 @@ UpdatePlayer_UpdateSprite:
144144 ld b , a
145145 ld a , [ wPlayerPositionX + 1 ]
146146 ld d , a
147-
147+
148148 srl d
149149 rr b
150150 srl d
@@ -168,7 +168,7 @@ UpdatePlayer_UpdateSprite:
168168 rr c
169169 srl e
170170 rr c
171-
171+
172172 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
173173 ; Drawing the palyer metasprite
174174 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -212,7 +212,7 @@ TryShoot:
212212; ANCHOR: player-damage
213213DamagePlayer::
214214
215-
215+
216216
217217 xor a
218218 ld [ mPlayerFlash ], a
@@ -234,9 +234,9 @@ MoveUp:
234234 sub PLAYER_MOVE_SPEED
235235 ld [ wPlayerPositionY ], a
236236
237- ld a , [ wPlayerPositionY ]
237+ ld a , [ wPlayerPositionY + 1 ]
238238 sbc 0
239- ld [ wPlayerPositionY ], a
239+ ld [ wPlayerPositionY + 1 ], a
240240
241241 ret
242242
0 commit comments