Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
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
6ba8fead
Commit
6ba8fead
authored
Sep 17, 2019
by
Ricardo Quesada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turret comments
parent
a830214e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
20 deletions
+28
-20
src/main.asm
src/main.asm
+23
-19
src/music.asm
src/music.asm
+5
-1
No files found.
src/main.asm
View file @
6ba8fead
...
...
@@ -5761,7 +5761,7 @@ b3741 LDA SPRITES_TYPE05,Y
LDA
SP
RITES_TYPE05
,
Y
CMP
#
$
1
E
;anim_type_1E: turret fire
BNE
b3790
JMP
j37CF
JMP
DESTROY_TURRET
b3790
JSR
DI
E_ANIM_AND_SCORE
b3793
INY
...
...
@@ -5795,20 +5795,23 @@ b37A9 LDA #$00 ;#%00000000
FRAME_EXPLOSION
;$37CA
.BYTE
$
AF
,
$
AE
,
$
AD
,
$
AF
,
$
FF
j37CF
TXA
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
; Destroys the turret
DESTROY_TURRET
TXA
PHA
TYA
PHA
LDA
#
$
0
A
;#%00001010
LDA
#
$
0
A
;Points scored
JSR
SCORE_ADD
LDA
#
$
02
;#%00000010
LDA
#
$
02
;"Turret destroyed" SFX
JSR
SFX_PLAY
LDA
SP
RITES_TMP_B05
,
Y
CMP
#
$
0
A
;#%00001010
BEQ
b3848
CMP
#
$
0
A
BEQ
_L01
LDA
SP
RITES_X_LO05
,
Y
SEC
SBC
#
$
0
E
;#%00001110
SBC
#
$
0
E
STA
SP
RITES_X_LO01
,
X
LDA
SP
RITES_Y05
,
Y
STA
SP
RITES_Y01
,
X
...
...
@@ -5819,37 +5822,38 @@ j37CF TXA
TAX
LDA
FRAME_EXPLOSION
,
X
STA
SP
RITES_PTR05
,
Y
LDA
#
$
08
;orange
LDA
#
$
08
;orange
STA
SP
RITES_COLOR05
,
Y
LDA
SP
RITES_X_LO05
,
Y
SEC
SBC
#
$
18
;#%00011000
SBC
#
$
18
STA
TMP_SPRITE_X_LO
LDA
SP
RITES_Y05
,
Y
SEC
SBC
#
$
2
E
;#%00101110
SBC
#
$
2
E
STA
TMP_SPRITE_Y
LDA
SP
RITES_X_HI05
,
Y
STA
TMP_SPRITE_X_HI
LDA
SP
RITES_Y05
,
Y
SEC
SBC
#
$
0
A
;#%00001010
SBC
#
$
0
A
STA
SP
RITES_Y05
,
Y
JSR
j172F
LDA
a00FC
,
b
STA
a00FB
,
b
LDA
a00FD
,
b
STA
a00FC
,
b
LDA
#
$
04
LDA
#
$
04
;Draw left turret destroyed
JSR
LEVEL_PATCH_TURRET
JSR
LEVEL_DRAW_VIEWPORT
j3841
PLA
_L00
PLA
TAY
PLA
TAX
JMP
b3793
JMP
b3793
;A grenade could kill more than one enemy at the time.
; Continue with the next enemy.
b3848
LDA
SP
RITES_X_LO05
,
Y
_L01
LDA
SP
RITES_X_LO05
,
Y
CLC
ADC
#
$
0
E
STA
SP
RITES_X_LO01
,
X
...
...
@@ -5868,14 +5872,14 @@ b3848 LDA SPRITES_X_LO05,Y
SEC
SBC
#
$
0
A
STA
SP
RITES_Y05
,
Y
LDA
#
<
$
859
A
;Turret location in lvl1 lo
LDA
#
<
$
859
A
;Turret location in lvl1 lo
STA
a00FB
,
b
LDA
#
>
$
859
A
;Turret location in lvl1 hi
LDA
#
>
$
859
A
;Turret location in lvl1 hi
STA
a00FC
,
b
LDA
#
$
06
LDA
#
$
06
;Draw right turret destroyed
JSR
LEVEL_PATCH_TURRET
JSR
LEVEL_DRAW_VIEWPORT
JMP
j3841
JMP
_L00
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
; Animate explosion
...
...
src/music.asm
View file @
6ba8fead
...
...
@@ -26,9 +26,13 @@ s5006 JMP j5F48
; Plays a sound effect
; A=sfx to play
; $00 = pick up grenade
; $01 = throw grenade
; $02 = turret destroyed
; $04 = hero dead
; $05 = cart going up (lvl1)
; $09 = fire in fort (lvl3)
; $0B = hiscore shoot
; $0C = new life
SFX_PLAY
JMP
j5F56
...
...
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