Commit 69bdd1df authored by Ricardo Quesada's avatar Ricardo Quesada

SORT_SPRITES_BY_Y

parent 58c018dc
......@@ -379,7 +379,7 @@ GAME_LOOP ;$08CB
_L00 INC GAME_TICK
JSR APPLY_DELTA_MOV
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
JSR TRY_THROW_GRENADE
JSR ANIM_ENEMIES
JSR RUN_ACTIONS
......@@ -784,7 +784,7 @@ _L00 STA HISCORE_NAME,X
LDA #$20
STA HISCORE_SELECTED_CHAR
JSR APPLY_DELTA_MOV
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
RTS
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
......@@ -908,7 +908,7 @@ _L05 JSR WAIT_RASTER_AT_BOTTOM
JSR HISCORE_READ_JOY_FIRE
JSR HISCORE_ANIM_CHAR
JSR APPLY_DELTA_MOV
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
JSR s0C6F
LDA HISCORE_SELECTED_CHAR
CMP #$78 ;#%01111000
......@@ -1219,7 +1219,7 @@ _L00 LDA #$48 ;Sprite Y position
BNE _L00
JSR APPLY_DELTA_MOV
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
LDA #$00 ;#%00000000
STA $D025 ;Sprite Multi-Color Register 0
LDA #$07 ;#%00000111
......@@ -6460,7 +6460,7 @@ _L00 LDA f3D27,X
BNE _L00
JSR APPLY_DELTA_MOV
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
LDA #$FF ;#%11111111
STA COUNTER1
_L01 LDX #$00 ;#%00000000
......@@ -6681,7 +6681,7 @@ _L02 LDA #$00
CPX #$40 ;length of the sprite
BNE _L02
JSR SPRITES_SORT_BY_Y
JSR SORT_SPRITES_BY_Y
JSR RERUN_ACTIONS
; Make sure player has at least 5 grenades
......@@ -6727,7 +6727,7 @@ b3F19 INX
RTS
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
SPRITES_SORT_BY_Y ;$3F24
SORT_SPRITES_BY_Y ;$3F24
LDA #$0F ;#%00001111
STA a0014,b
STA a00D7,b
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment