Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
C
c64-commando-2084
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ricardo Quesada
c64-commando-2084
Commits
69bdd1df
Commit
69bdd1df
authored
Sep 05, 2019
by
Ricardo Quesada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SORT_SPRITES_BY_Y
parent
58c018dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/main.asm
src/main.asm
+7
-7
No files found.
src/main.asm
View file @
69bdd1df
...
...
@@ -379,7 +379,7 @@ GAME_LOOP ;$08CB
_L00
INC
GAME_TICK
JSR
APPLY_DELTA_MOV
JSR
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_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
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_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
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_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
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_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
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_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
S
P
RITES_SORT
_BY_Y
JSR
S
ORT_SPRITES
_BY_Y
JSR
RERUN_ACTIONS
; Make sure player has at least 5 grenades
...
...
@@ -6727,7 +6727,7 @@ b3F19 INX
RTS
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
S
PRITES_SORT
_BY_Y
;$3F24
S
ORT_SPRITES
_BY_Y
;$3F24
LDA
#
$
0
F
;#%00001111
STA
a0014
,
b
STA
a00D7
,
b
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment