Better and faster Laser

This commit is contained in:
Pecusx
2022-11-15 11:02:11 +01:00
parent fbcbab2eec
commit a33d7d541d
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ CheckNextTankAD
jsr AutoDefense jsr AutoDefense
@ dex @ dex
bpl CheckNextTankAD bpl CheckNextTankAD
jsr DrawTanks ; redraw tanks witch new defences jsr DrawTanks ; redraw tanks with new defences
; ;
ldx TankSequencePointer ldx TankSequencePointer
lda TankSequence,x lda TankSequence,x
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+5 -3
View File
@@ -1506,7 +1506,7 @@ AfterStrongShoot
tay ; A=0 ! tay ; A=0 !
adw xtraj+1 #mountaintable temp adw xtraj+1 #mountaintable temp
lda ytraj+1 lda ytraj+1
cmp (temp),y ; check collision witch mountains cmp (temp),y ; check collision with mountains
bcs ShotUnderGround bcs ShotUnderGround
jsr Flight jsr Flight
mva #1 color mva #1 color
@@ -1761,6 +1761,8 @@ LaserNoWalls
bit TestFlightFlag bit TestFlightFlag
bmi nowait bmi nowait
bit LaserFlag ; faster laser prepare
bmi nowait
lda color lda color
beq nonowait ; smoke tracer erases slowly beq nonowait ; smoke tracer erases slowly
lda tracerflag lda tracerflag
@@ -1777,7 +1779,7 @@ nowait
; If laser fires, edges of the screen finish "flying" and laser hits. ; If laser fires, edges of the screen finish "flying" and laser hits.
lda ytraj+2 lda ytraj+2
bmi LaserHitEdge bmi LaserHitEdge
cpw xtraj+1 #screenwidth+1 cpw xtraj+1 #screenwidth ;+1
bcc LaserNoHitEdge bcc LaserNoHitEdge
LaserHitEdge LaserHitEdge
mwa xdraw XHit mwa xdraw XHit
@@ -2216,7 +2218,7 @@ MIRVcheckCollision
ldy #0 ldy #0
lda ytraj+1 lda ytraj+1
cmp (temp),y ; check collision witch mountains cmp (temp),y ; check collision with mountains
bcs mrHit bcs mrHit
mrSkipCollisionCheck mrSkipCollisionCheck