mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Tank colors bugfix & new DLI for purchase screen
He, he. The tank colors were not taken from the table :)
This commit is contained in:
@@ -6,10 +6,13 @@
|
||||
;==========================CONSTANT TABLES, do not erase!===========================
|
||||
;===================================================================================
|
||||
TankColoursTable .BYTE $5a,$dc,$88,$26,$a8,$02
|
||||
TankStatusColoursTable .BYTE $52,$d2,$82,$22,$a2,$02
|
||||
dliColorsBack
|
||||
:10 .by $04,$02
|
||||
dliColorsFore
|
||||
.by $0e
|
||||
TextBackgroundColor = $02 ; REAL constans - use: LDA #TextBackgroundColor
|
||||
TextForegroundColor = $0c
|
||||
CashOptionL ;(one zero less than on the screen)
|
||||
.by 0,<200,<500,<800,<1000
|
||||
CashOptionH
|
||||
|
||||
+22
-11
@@ -151,10 +151,12 @@ START
|
||||
; for the round #1 shooting sequence is random
|
||||
|
||||
MainGameLoop
|
||||
VDLI DLIinterrupt ; jsr SetDLI
|
||||
VDLI DLIinterruptText ; jsr SetDLI for text (purchase) screen
|
||||
|
||||
jsr CallPurchaseForEveryTank
|
||||
|
||||
VDLI DLIinterruptGraph ; jsr SetDLI for graphics (game) screen
|
||||
|
||||
mwa #dl dlptrs
|
||||
lda dmactls
|
||||
and #$fc
|
||||
@@ -395,7 +397,7 @@ DoNotFinishTheRound
|
||||
|
||||
mva #1 color ;to display flying point
|
||||
|
||||
lda TankColoursTable,x
|
||||
lda TankStatusColoursTable,x
|
||||
sta colpf2s ; set color of status line
|
||||
|
||||
lda SkillTable,x
|
||||
@@ -784,8 +786,8 @@ deletePtr = temp
|
||||
jsr WeaponCleanup
|
||||
|
||||
|
||||
mva #$2 colpf2s
|
||||
mva #12 colpf3s
|
||||
mva #TextBackgroundColor colpf2s
|
||||
mva #TextForegroundColor colpf3s
|
||||
mva #>WeaponFont chbas
|
||||
|
||||
;parameter for old plot (unPlot) max 5 points
|
||||
@@ -819,16 +821,16 @@ SetunPlots
|
||||
lda #$10 ; P/M priorities (bit 4 joins missiles)
|
||||
sta gtictls
|
||||
jsr PMoutofScreen
|
||||
lda #$50 ; temporary colours of sprites under tanks
|
||||
lda TankColoursTable ; temporary colours of sprites under tanks
|
||||
sta $2c0
|
||||
lda #$30
|
||||
lda TankColoursTable+1
|
||||
sta $2c1
|
||||
lda #$70
|
||||
lda TankColoursTable+2
|
||||
sta $2c2
|
||||
lda #$90
|
||||
lda TankColoursTable+3
|
||||
sta $2c3
|
||||
LDA #$B0
|
||||
STA COLPF3S
|
||||
LDA TankColoursTable+4
|
||||
STA COLPF3S ; WHAT THE FUCK ???? !!!! ????
|
||||
mva #0 hscrol
|
||||
|
||||
|
||||
@@ -867,7 +869,7 @@ ClearResults
|
||||
rts
|
||||
.endp
|
||||
|
||||
DLIinterrupt .proc
|
||||
DLIinterruptGraph .proc
|
||||
pha
|
||||
phy
|
||||
ldy dliCounter
|
||||
@@ -889,6 +891,15 @@ DLIinterrupt .proc
|
||||
rti
|
||||
.endp
|
||||
|
||||
DLIinterruptText .proc
|
||||
pha
|
||||
sta WSYNC
|
||||
mva #TextBackgroundColor colpf2
|
||||
mva #TextForegroundColor colpf3
|
||||
pla
|
||||
rti
|
||||
.endp
|
||||
|
||||
VBLinterrupt .proc
|
||||
pha
|
||||
phx
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -228,7 +228,7 @@ AfterManualPurchase
|
||||
jsr PMoutofScreen
|
||||
|
||||
ldx tankNr
|
||||
lda TankColoursTable,x
|
||||
lda TankStatusColoursTable,x
|
||||
sta colpf2s
|
||||
|
||||
; we are clearing list of the weapons
|
||||
|
||||
Reference in New Issue
Block a user