Tanks and mountains on Oprions screen but RMT still hangs
This commit is contained in:
@@ -31,6 +31,11 @@ OptionsDL
|
|||||||
.word OptionsScreen
|
.word OptionsScreen
|
||||||
.byte $30,$02,$02,$70
|
.byte $30,$02,$02,$70
|
||||||
:maxOptions .by $02,$10
|
:maxOptions .by $02,$10
|
||||||
|
:(9-maxOptions) .by $70,$10
|
||||||
|
.byte $80
|
||||||
|
.byte $4f
|
||||||
|
.word (display+140*40)
|
||||||
|
:21 .by $0f ;76
|
||||||
.byte $41
|
.byte $41
|
||||||
.word OptionsDL
|
.word OptionsDL
|
||||||
;------------------------
|
;------------------------
|
||||||
|
|||||||
+13
@@ -1013,6 +1013,19 @@ MakeTanksVisible
|
|||||||
rti
|
rti
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
.proc DLIinterruptOptions
|
||||||
|
;sta dliA
|
||||||
|
;sty dliY
|
||||||
|
pha
|
||||||
|
; lda dliColorsBack
|
||||||
|
lda #0
|
||||||
|
sta COLPF1
|
||||||
|
lda dliColorsFore
|
||||||
|
sta COLPF2
|
||||||
|
pla
|
||||||
|
rti
|
||||||
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptGameOver
|
.proc DLIinterruptGameOver
|
||||||
;sta dliA
|
;sta dliA
|
||||||
;sty dliY
|
;sty dliY
|
||||||
|
|||||||
BIN
Binary file not shown.
+30
-4
@@ -20,19 +20,45 @@
|
|||||||
; lda dmactls
|
; lda dmactls
|
||||||
; and #$fc
|
; and #$fc
|
||||||
; ora #$02 ; normal screen width
|
; ora #$02 ; normal screen width
|
||||||
lda #%00110010 ; normal screen width, DL on, P/M off
|
; lda #%00110010 ; normal screen width, DL on, P/M off
|
||||||
|
lda #%00111110 ; normal screen width, DL on, P/M on
|
||||||
sta dmactls
|
sta dmactls
|
||||||
jsr PMoutofScreen
|
jsr SetPMWidth
|
||||||
mva #TextBackgroundColor colpf2s
|
mva #TextBackgroundColor colpf2s
|
||||||
mva #TextForegroundColor colpf3s
|
mva #TextForegroundColor colpf3s
|
||||||
mva #$ca colpf1s
|
mva #$ca colpf1s
|
||||||
|
|
||||||
VDLI DLIinterruptText.DLIinterruptNone ; jsr SetDLI for text screen without DLIs
|
VDLI DLIinterruptOptions ; jsr SetDLI for Options text screen
|
||||||
|
|
||||||
|
; -------- setup bottom (tanks) line
|
||||||
|
lda NumberOfPlayers
|
||||||
|
pha
|
||||||
|
lda mountainsDeltaTableH
|
||||||
|
sta mountainDeltaH
|
||||||
|
lda mountainsDeltaTableL
|
||||||
|
sta mountainDeltaL
|
||||||
|
mva #6 NumberOfPlayers
|
||||||
|
jsr PMoutofScreen ;let P/M disappear
|
||||||
|
jsr clearscreen ;let the screen be clean
|
||||||
|
jsr ClearPMmemory
|
||||||
|
jsr placetanks ;let the tanks be evenly placed
|
||||||
|
jsr calculatemountains ;let mountains be easy for the eye
|
||||||
|
jsr ColorsOfSprites
|
||||||
|
jsr drawmountains ;draw them
|
||||||
|
ldx NumberOfPlayers
|
||||||
|
dex
|
||||||
|
@ jsr RandomizeAngle
|
||||||
|
sta AngleTable,x
|
||||||
|
dex
|
||||||
|
bpl @-
|
||||||
|
jsr drawtanks ;finally draw tanks
|
||||||
|
pla
|
||||||
|
sta NumberOfPlayers
|
||||||
|
; --------
|
||||||
|
|
||||||
mva #0 OptionsY
|
mva #0 OptionsY
|
||||||
|
|
||||||
OptionsMainLoop
|
OptionsMainLoop
|
||||||
|
|
||||||
jsr OptionsInversion
|
jsr OptionsInversion
|
||||||
jsr getkey
|
jsr getkey
|
||||||
ldx escFlag
|
ldx escFlag
|
||||||
|
|||||||
Reference in New Issue
Block a user