Skip to content

Commit

Permalink
use tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
boomlinde committed Feb 9, 2016
1 parent 867032d commit 5859ae2
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 690 deletions.
118 changes: 59 additions & 59 deletions crash.a
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
!zone {
lda CRASH
bne .nocrash
lda CXP0FB
ora CXP1FB
and #$80
beq .nocrash
lda #8
sta AUDC1
lda #0
sta AUDV0
sta AUDC0
lda #$80
sta CRASH
lda #$3f
sta EXPLOSION
lda #0
sta SPEEDY0_LO
sta SPEEDY0_HI
sta SPEEDY1_LO
sta SPEEDY1_HI
sta SPEEDX0_LO
sta SPEEDX0_HI
sta SPEEDX1_LO
sta SPEEDX1_HI
lda CRASH
bne .nocrash
lda CXP0FB
ora CXP1FB
and #$80
beq .nocrash
lda #8
sta AUDC1
lda #0
sta AUDV0
sta AUDC0
lda #$80
sta CRASH
lda #$3f
sta EXPLOSION
lda #0
sta SPEEDY0_LO
sta SPEEDY0_HI
sta SPEEDY1_LO
sta SPEEDY1_HI
sta SPEEDX0_LO
sta SPEEDX0_HI
sta SPEEDX1_LO
sta SPEEDX1_HI

lda CXP0FB
and #$80
beq .nocrashp0
dec P0LIVES
lda CXP0FB
and #$80
beq .nocrashp0
dec P0LIVES
.nowinnerp0
lda #120
sta Y0_HI
lda P0LIVES
bne .nocrashp0
lda #1
sta RESET
lda #120
sta Y0_HI
lda P0LIVES
bne .nocrashp0
lda #1
sta RESET
.nocrashp0
lda CXP1FB
and #$80
beq .nocrashp1
dec P1LIVES
lda CXP1FB
and #$80
beq .nocrashp1
dec P1LIVES
.nowinnerp1
lda #120
sta Y1_HI
lda P1LIVES
bne .nocrashp1
lda #1
sta RESET
lda #120
sta Y1_HI
lda P1LIVES
bne .nocrashp1
lda #1
sta RESET
.nocrashp1
lda P0LIVES
ora P1LIVES
bne .notboth
lda #$50
sta WINNER_COLOR
jmp .nocrash
lda P0LIVES
ora P1LIVES
bne .notboth
lda #$50
sta WINNER_COLOR
jmp .nocrash
.notboth
lda P0LIVES
bne .checknext
lda #P1COL-10
sta WINNER_COLOR
jmp .nocrash
lda P0LIVES
bne .checknext
lda #P1COL-10
sta WINNER_COLOR
jmp .nocrash
.checknext
lda P1LIVES
bne .nocrash
lda #P0COL-10
sta WINNER_COLOR
lda P1LIVES
bne .nocrash
lda #P0COL-10
sta WINNER_COLOR
.nocrash
}
44 changes: 22 additions & 22 deletions enginesounds.a
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
!zone {
tax
and #%11001100
beq .noblow
lda SNDFRAME
and #1
bne .noblow
lda #8
sta AUDC0
lda #1
sta AUDF0
lda #2
sta AUDV0
jmp .nothrust
tax
and #%11001100
beq .noblow
lda SNDFRAME
and #1
bne .noblow
lda #8
sta AUDC0
lda #1
sta AUDF0
lda #2
sta AUDV0
jmp .nothrust
.noblow
txa
and #$11
beq .nothrust
lda #8
sta AUDC0
lda #20
sta AUDF0
lda #4
sta AUDV0
txa
and #$11
beq .nothrust
lda #8
sta AUDC0
lda #20
sta AUDF0
lda #4
sta AUDV0
.nothrust
}
Loading

0 comments on commit 5859ae2

Please sign in to comment.