Minor memory tricks

This commit is contained in:
Pecusx
2022-11-30 14:45:26 +01:00
parent d14f9a2999
commit 05f3f32f00
7 changed files with 19 additions and 22 deletions
+3 -2
View File
@@ -22,8 +22,9 @@
pha
lda AIRoutines,y
pha
jsr PrepareAIShoot
rts
; it's no necessary - PrepareAIShoot is next proc :)
; jsr PrepareAIShoot
; rts
.endp
;----------------------------------------------
.proc PrepareAIShoot
+6 -1
View File
@@ -208,7 +208,12 @@ TanksNamesDefault
dta d"4th.Tank"
dta d"5th.Tank"
dta d"6th.Tank"
;-------------------------------------------------
TankShapesTable .BYTE char_tank1___________
.BYTE char_tank2___________
.BYTE char_tank3___________
.BYTE char_tank4___________
;-------------------------------------------------
WeaponPriceH ; weapons prices (tables with prices of weapons)
.by >price_Baby_Missile___
.by >price_Missile________
-4
View File
@@ -7,10 +7,6 @@ TankColoursTable .BYTE $58,$2a,$96,$ca,$7a,$ed
;TanksPMOrder .BYTE 4,3,1,5,0,2 ; 0-3 = P0-P3 , 4 = M0+M1 , 5 = M2+M3
TankStatusColoursTable .BYTE $74,$c4,$24,$e4,$54,$94 ; Adam's order
TanksPMOrder .BYTE 4,3,1,5,0,2 ; 0-3 = P0-P3 , 4 = M0+M1 , 5 = M2+M3
TankShapesTable .BYTE char_tank1___________
.BYTE char_tank2___________
.BYTE char_tank3___________
.BYTE char_tank4___________
dliColorsBack
:10 .by $02,$00
dliColorsFore
+2 -2
View File
@@ -2209,13 +2209,13 @@ ybarrel
.endp
;--------------------------------------------------
.proc SetPMWidth
lda #%01010101
sta sizem ; all missiles, double width
lda #$00
sta sizep0 ; P0-P3 widths
sta sizep0+1
sta sizep0+2
sta sizep0+3
lda #%01010101
sta sizem ; all missiles, double width
rts
.endp
+8 -13
View File
@@ -334,10 +334,7 @@ MainGameLoop
jsr CallPurchaseForEveryTank
mva #0 SpyHardFlag
; issue #72 (glitches when switches)
jsr MakeDarkScreen
bit escFlag
bmi START
@@ -350,14 +347,14 @@ MainGameLoop
bmi START
jvs GoGameOver
mva #0 TankNr ;
jsr SortSequence
mva #0 TankNr ;
sta COLBAKS ; set background color to black
sta JoystickNumber ; set joystick port for player
; Hide all (easier than hide last ;) ) tanks
jsr cleartanks ; A=0
sta COLBAKS ; set background color to black
sta JoystickNumber ; set joystick port for player
; here gains and losses should be displayed (dollars)
; finally we have changed our minds and money of players
@@ -370,6 +367,7 @@ MainGameLoop
jsr DisplayResults
jsr DemoModeOrKey
jsr MakeDarkScreen
ldx NumberOfPlayers
dex
@@ -463,13 +461,10 @@ eskipzeroing
lda GameIsOver
beq NoGameOverYet
GoGameOver
jsr MakeDarkScreen
jsr GameOverScreen
jmp START
NoGameOverYet
inc CurrentRoundNr
jsr MakeDarkScreen ; issue #72
; jsr RmtSongSelect ; ?????
mva #sfx_silencer sfx_effect
jmp MainGameLoop
@@ -487,8 +482,8 @@ NoGameOverYet
RmtSong song_ingame
jsr SetPMWidth
lda #0
jsr SetPMWidth ; A=0 !!!
;lda #0
sta AfterBFGflag ; reset BFG flag
sta COLOR2 ; status line "off"
sta COLOR1
@@ -1190,7 +1185,7 @@ MakeTanksVisible
nop
.IF TARGET = 800
nop ; necessary on 800 because DLIs take less time, jitter visible without it
;nop
nop
.ENDIF
sta COLPF1
; lda dliColorsFore,y ; mountains colors array
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.