mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
forgot about rounds... #76
This commit is contained in:
+24
-23
@@ -307,12 +307,13 @@ SettingEnergies
|
|||||||
;jsr calculatemountains0 ;only for tests - makes mountains flat and 0 height
|
;jsr calculatemountains0 ;only for tests - makes mountains flat and 0 height
|
||||||
|
|
||||||
jsr SetMainScreen
|
jsr SetMainScreen
|
||||||
|
jsr ColorsOfSprites
|
||||||
|
|
||||||
jsr drawmountains ;draw them
|
jsr drawmountains ;draw them
|
||||||
jsr drawtanks ;finally draw tanks
|
jsr drawtanks ;finally draw tanks
|
||||||
|
|
||||||
mva #0 TankSequencePointer
|
mva #0 TankSequencePointer
|
||||||
;--------------------round screen is ready---------
|
;---------round screen is ready---------
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
@@ -787,6 +788,20 @@ NotNegativeShieldEnergy
|
|||||||
:8 sta hposp0+#
|
:8 sta hposp0+#
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc ColorsOfSprites
|
||||||
|
lda TankColoursTable ; colours of sprites under tanks
|
||||||
|
sta COLPM0S
|
||||||
|
lda TankColoursTable+1
|
||||||
|
sta COLPM1S
|
||||||
|
lda TankColoursTable+2
|
||||||
|
sta COLPM2S
|
||||||
|
lda TankColoursTable+3
|
||||||
|
sta COLPM3S
|
||||||
|
LDA TankColoursTable+4
|
||||||
|
STA COLPF3S ; joined missiles (5th tank)
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc WeaponCleanup;
|
.proc WeaponCleanup;
|
||||||
@@ -873,18 +888,7 @@ SetunPlots
|
|||||||
lda #$10 ; P/M priorities (bit 4 joins missiles)
|
lda #$10 ; P/M priorities (bit 4 joins missiles)
|
||||||
sta gtictls
|
sta gtictls
|
||||||
jsr PMoutofScreen
|
jsr PMoutofScreen
|
||||||
lda TankColoursTable ; temporary colours of sprites under tanks
|
jsr ColorsOfSprites
|
||||||
sta COLPM0S
|
|
||||||
lda TankColoursTable+1
|
|
||||||
sta COLPM1S
|
|
||||||
lda TankColoursTable+2
|
|
||||||
sta COLPM2S
|
|
||||||
lda TankColoursTable+3
|
|
||||||
sta COLPM3S
|
|
||||||
LDA TankColoursTable+4
|
|
||||||
STA COLPF3S ; joined missiles (5th tank)
|
|
||||||
mva #0 hscrol
|
|
||||||
|
|
||||||
|
|
||||||
;let the tanks be visible!
|
;let the tanks be visible!
|
||||||
ldx #(maxPlayers-1)
|
ldx #(maxPlayers-1)
|
||||||
@@ -920,7 +924,7 @@ ClearResults
|
|||||||
|
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptGraph
|
.proc DLIinterruptGraph
|
||||||
;sta dliA
|
;sta dliA
|
||||||
;sty dliY
|
;sty dliY
|
||||||
@@ -941,7 +945,7 @@ ClearResults
|
|||||||
pla
|
pla
|
||||||
rti
|
rti
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptText
|
.proc DLIinterruptText
|
||||||
;sta dliA
|
;sta dliA
|
||||||
pha
|
pha
|
||||||
@@ -953,7 +957,7 @@ ClearResults
|
|||||||
DLIinterruptNone
|
DLIinterruptNone
|
||||||
rti
|
rti
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
.proc VBLinterrupt
|
.proc VBLinterrupt
|
||||||
pha
|
pha
|
||||||
phx
|
phx
|
||||||
@@ -1007,9 +1011,7 @@ exitVBL
|
|||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
.proc RandomizeSequence
|
.proc RandomizeSequence
|
||||||
; in: NumberOfPlayers
|
; in: NumberOfPlayers
|
||||||
; out: TankSequence
|
; out: TankSequence
|
||||||
@@ -1127,7 +1129,6 @@ LimitForce
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
.proc MoveBarrelToNewPosition
|
.proc MoveBarrelToNewPosition
|
||||||
jsr DrawTankNr
|
jsr DrawTankNr
|
||||||
@@ -1161,7 +1162,7 @@ rotateLeft
|
|||||||
BarrelPositionIsFine
|
BarrelPositionIsFine
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
.proc SortSequence ;
|
.proc SortSequence ;
|
||||||
@@ -1291,9 +1292,8 @@ notpressedJoyGetKey
|
|||||||
getkeyend
|
getkeyend
|
||||||
mvx #sfx_keyclick sfx_effect
|
mvx #sfx_keyclick sfx_effect
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc getkeynowait
|
.proc getkeynowait
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -1302,6 +1302,7 @@ getkeyend
|
|||||||
and #$3f ;CTRL and SHIFT ellimination
|
and #$3f ;CTRL and SHIFT ellimination
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc WaitForKeyRelease
|
.proc WaitForKeyRelease
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
BIN
Binary file not shown.
+3
-2
@@ -1602,6 +1602,8 @@ quit_seppuku
|
|||||||
.proc DisplayResults ;
|
.proc DisplayResults ;
|
||||||
;displays results of the round
|
;displays results of the round
|
||||||
;using 4x4 font
|
;using 4x4 font
|
||||||
|
jsr RoundOverSprites
|
||||||
|
|
||||||
|
|
||||||
mva #1 plot4x4color
|
mva #1 plot4x4color
|
||||||
|
|
||||||
@@ -1634,7 +1636,6 @@ quit_seppuku
|
|||||||
GameOver4x4
|
GameOver4x4
|
||||||
lda #song_game_over
|
lda #song_game_over
|
||||||
jsr RmtSongSelect
|
jsr RmtSongSelect
|
||||||
jsr GameOverSprites
|
|
||||||
mwa #LineGameOver LineAddress4x4
|
mwa #LineGameOver LineAddress4x4
|
||||||
mwa #((ScreenWidth/2)-(8*4)) LineXdraw
|
mwa #((ScreenWidth/2)-(8*4)) LineXdraw
|
||||||
mva ResultY LineYdraw
|
mva ResultY LineYdraw
|
||||||
@@ -1991,7 +1992,7 @@ NextChar02
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc GameOverSprites
|
.proc RoundOverSprites
|
||||||
; fill sprites with bytes
|
; fill sprites with bytes
|
||||||
ldy numberOfPlayers
|
ldy numberOfPlayers
|
||||||
dey
|
dey
|
||||||
|
|||||||
Reference in New Issue
Block a user