mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Better descriptions of "propaganda" weapon.
This commit is contained in:
+17
-15
@@ -381,25 +381,25 @@ GoRiotBomb
|
|||||||
.endp
|
.endp
|
||||||
; ------------------------
|
; ------------------------
|
||||||
.proc propaganda
|
.proc propaganda
|
||||||
; propaganda
|
; It floods the target with propaganda texts.
|
||||||
; lda #41 ; ((max propaganda text lenght [17+1] * 4 pixels) / 2) + 5 pixels for random X
|
lda #80 ; max text width with additional margins (left/right edges of the screen)
|
||||||
lda #80 ; test only
|
sta ExplosionRadius ; set soildown range
|
||||||
sta ExplosionRadius
|
|
||||||
jsr CalculateExplosionRange
|
jsr CalculateExplosionRange
|
||||||
|
|
||||||
mwa xdraw tempXROLLER ; save X coordinate of texts
|
mwa xdraw tempXROLLER ; save X coordinate of hitpoint
|
||||||
; all text start from `talk` and end with an inverse.
|
|
||||||
; we go through the `talk`, count number of inverses.
|
|
||||||
; if equal to TextNumberOff, it is our text, printit
|
|
||||||
|
|
||||||
mva #11 TempXfill ; number of text to display
|
mva #11 TempXfill ; number of text to display
|
||||||
nexttext
|
nexttext
|
||||||
|
; play SFX
|
||||||
mva #sfx_digger sfx_effect
|
mva #sfx_digger sfx_effect
|
||||||
@ lda random
|
@ lda random ; randomize propaganda messege
|
||||||
cmp #talk.NumberOfPropagandaTexts
|
cmp #talk.NumberOfPropagandaTexts
|
||||||
bcs @-
|
bcs @-
|
||||||
|
|
||||||
sta TextNumberOff
|
sta TextNumberOff
|
||||||
|
; all text start from `talk` and end with an inverse.
|
||||||
|
; we go through the `talk`, count number of inverses.
|
||||||
|
; if equal to TextNumberOff, it is our text, printit
|
||||||
lda #$ff
|
lda #$ff
|
||||||
sta plot4x4color
|
sta plot4x4color
|
||||||
mwa #talk LineAddress4x4
|
mwa #talk LineAddress4x4
|
||||||
@@ -410,15 +410,16 @@ nexttext
|
|||||||
bpl @-
|
bpl @-
|
||||||
iny
|
iny
|
||||||
sty fx
|
sty fx
|
||||||
mwa tempXROLLER temp
|
mwa tempXROLLER temp ; X coordinate of hitpoint
|
||||||
|
; calculate position of message
|
||||||
jsr Calculate4x4TextPosition
|
jsr Calculate4x4TextPosition
|
||||||
|
; and randomize Y coordinate (+/- 16pixels)
|
||||||
lda random
|
lda random
|
||||||
and #%00011111
|
and #%00011111
|
||||||
adc LineYdraw
|
adc LineYdraw
|
||||||
sbc #16
|
sbc #16
|
||||||
sta LineYdraw
|
sta LineYdraw
|
||||||
|
; randomize X coordinate (+/- 8 pixels)
|
||||||
lda random
|
lda random
|
||||||
and #%00000111
|
and #%00000111
|
||||||
clc
|
clc
|
||||||
@@ -429,9 +430,10 @@ nexttext
|
|||||||
@ sec
|
@ sec
|
||||||
sbc #4
|
sbc #4
|
||||||
sta LineXdraw
|
sta LineXdraw
|
||||||
bcs @+
|
bcs DisplayMessage
|
||||||
dec LineXdraw+1
|
dec LineXdraw+1
|
||||||
@
|
DisplayMessage
|
||||||
|
; display propaganda message
|
||||||
jsr TypeLine4x4.noLengthNoColor
|
jsr TypeLine4x4.noLengthNoColor
|
||||||
|
|
||||||
ldy #7
|
ldy #7
|
||||||
|
|||||||
Reference in New Issue
Block a user