mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
WIP: hunting for #47
This commit is contained in:
+18
-8
@@ -124,7 +124,7 @@ START
|
|||||||
bne START
|
bne START
|
||||||
|
|
||||||
jsr EnterPlayerNames
|
jsr EnterPlayerNames
|
||||||
jsr RandomizeSequence
|
jsr RandomizeSequence0
|
||||||
; for the round #1 shooting sequence is random
|
; for the round #1 shooting sequence is random
|
||||||
|
|
||||||
MainGameLoop
|
MainGameLoop
|
||||||
@@ -257,7 +257,7 @@ skipzeroing
|
|||||||
cpx #(singleRoundVarsEnd-singleRoundVars)
|
cpx #(singleRoundVarsEnd-singleRoundVars)
|
||||||
bne @-
|
bne @-
|
||||||
|
|
||||||
ldx #5
|
ldx #(MaxPlayers-1)
|
||||||
SettingEnergies
|
SettingEnergies
|
||||||
lda #$00
|
lda #$00
|
||||||
sta gainL,x
|
sta gainL,x
|
||||||
@@ -480,7 +480,7 @@ NextPlayerShoots
|
|||||||
;before it shoots, the eXistenZ table must be
|
;before it shoots, the eXistenZ table must be
|
||||||
;updated accordingly to actual energy (was forgotten, sorry to ourselves)
|
;updated accordingly to actual energy (was forgotten, sorry to ourselves)
|
||||||
|
|
||||||
ldx #5
|
ldx #(MaxPlayers-1)
|
||||||
SeteXistenZ
|
SeteXistenZ
|
||||||
lda Energy,x
|
lda Energy,x
|
||||||
sta eXistenZ,x
|
sta eXistenZ,x
|
||||||
@@ -500,7 +500,7 @@ LP0
|
|||||||
ROR L1
|
ROR L1
|
||||||
BCC B0
|
BCC B0
|
||||||
CLC
|
CLC
|
||||||
ADC #10 ; multiplication by 10 (L2)
|
ADC #10 ; (L2) multiplication by 10
|
||||||
B0 DEY
|
B0 DEY
|
||||||
BNE LP0
|
BNE LP0
|
||||||
ror
|
ror
|
||||||
@@ -567,7 +567,7 @@ NoPlayerNoDeath
|
|||||||
jmp MainRoundLoop.continueMainRoundLoopAfterSeppuku
|
jmp MainRoundLoop.continueMainRoundLoopAfterSeppuku
|
||||||
.endp
|
.endp
|
||||||
;---------------------------------
|
;---------------------------------
|
||||||
PlayerXdeath
|
.proc PlayerXdeath
|
||||||
|
|
||||||
; this tank should not explode anymore:
|
; this tank should not explode anymore:
|
||||||
; there is 0 in A, and Tank Number in X, so...
|
; there is 0 in A, and Tank Number in X, so...
|
||||||
@@ -591,7 +591,6 @@ PlayerXdeath
|
|||||||
sta ResultsTable,x
|
sta ResultsTable,x
|
||||||
inc CurrentResult
|
inc CurrentResult
|
||||||
|
|
||||||
|
|
||||||
mva #sfx_death_begin sfx_effect
|
mva #sfx_death_begin sfx_effect
|
||||||
;RandomizeDeffensiveText
|
;RandomizeDeffensiveText
|
||||||
randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1)
|
randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1)
|
||||||
@@ -607,8 +606,6 @@ PlayerXdeath
|
|||||||
mva #0 plot4x4color
|
mva #0 plot4x4color
|
||||||
jsr DisplayOffensiveTextNr
|
jsr DisplayOffensiveTextNr
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; calculate position of the explosion (the post-death one)
|
; calculate position of the explosion (the post-death one)
|
||||||
ldx TankTempY
|
ldx TankTempY
|
||||||
clc
|
clc
|
||||||
@@ -656,6 +653,7 @@ MetodOfDeath
|
|||||||
|
|
||||||
|
|
||||||
jmp MainRoundLoop.AfterExplode
|
jmp MainRoundLoop.AfterExplode
|
||||||
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DecreaseEnergyX
|
.proc DecreaseEnergyX
|
||||||
@@ -909,6 +907,18 @@ lab2
|
|||||||
jmp SYSVBV
|
jmp SYSVBV
|
||||||
.endp
|
.endp
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
|
.proc RandomizeSequence0
|
||||||
|
ldx #0
|
||||||
|
@ txa
|
||||||
|
sta TankSequence,x
|
||||||
|
inx
|
||||||
|
cpx #MaxPlayers
|
||||||
|
bne @-
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.proc RandomizeSequence
|
.proc RandomizeSequence
|
||||||
; in: NumberOfPlayers
|
; in: NumberOfPlayers
|
||||||
; out: TankSequence
|
; out: TankSequence
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user