mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
X randomize in Propaganda
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
+18
-3
@@ -382,7 +382,8 @@ GoRiotBomb
|
|||||||
; ------------------------
|
; ------------------------
|
||||||
.proc propaganda
|
.proc propaganda
|
||||||
; propaganda
|
; propaganda
|
||||||
lda #36 ; (max propaganda text lenght [17+1] * 4 pixels) / 2
|
; lda #41 ; ((max propaganda text lenght [17+1] * 4 pixels) / 2) + 5 pixels for random X
|
||||||
|
lda #80 ; test only
|
||||||
sta ExplosionRadius
|
sta ExplosionRadius
|
||||||
jsr CalculateExplosionRange
|
jsr CalculateExplosionRange
|
||||||
|
|
||||||
@@ -391,7 +392,7 @@ GoRiotBomb
|
|||||||
; we go through the `talk`, count number of inverses.
|
; we go through the `talk`, count number of inverses.
|
||||||
; if equal to TextNumberOff, it is our text, printit
|
; if equal to TextNumberOff, it is our text, printit
|
||||||
|
|
||||||
mva #15 TempXfill ; number of text to display
|
mva #11 TempXfill ; number of text to display
|
||||||
nexttext
|
nexttext
|
||||||
mva #sfx_digger sfx_effect
|
mva #sfx_digger sfx_effect
|
||||||
@ lda random
|
@ lda random
|
||||||
@@ -417,9 +418,23 @@ nexttext
|
|||||||
adc LineYdraw
|
adc LineYdraw
|
||||||
sbc #16
|
sbc #16
|
||||||
sta LineYdraw
|
sta LineYdraw
|
||||||
|
|
||||||
|
lda random
|
||||||
|
and #%00000111
|
||||||
|
clc
|
||||||
|
adc LineXdraw
|
||||||
|
sta LineXdraw
|
||||||
|
bcc @+
|
||||||
|
inc LineXdraw+1
|
||||||
|
@ sec
|
||||||
|
sbc #4
|
||||||
|
sta LineXdraw
|
||||||
|
bcs @+
|
||||||
|
dec LineXdraw+1
|
||||||
|
@
|
||||||
jsr TypeLine4x4.noLengthNoColor
|
jsr TypeLine4x4.noLengthNoColor
|
||||||
|
|
||||||
ldy #5
|
ldy #7
|
||||||
jsr PauseYFrames
|
jsr PauseYFrames
|
||||||
|
|
||||||
dec TempXfill
|
dec TempXfill
|
||||||
|
|||||||
Reference in New Issue
Block a user