Clouds randomization - final (I hope)

This commit is contained in:
Pecusx
2025-03-21 22:35:13 +01:00
parent b355edc8a6
commit 28a313fe57
2 changed files with 11 additions and 2 deletions
+11 -2
View File
@@ -9,7 +9,7 @@
;---------------------------------------------------
.macro build
dta d"0.20" ; number of this build (4 bytes)
dta d"0.30" ; number of this build (4 bytes)
.endm
.macro RMTSong
@@ -1024,6 +1024,10 @@ make_cloud1
randomize 0 (20-5-datalines_clouds)
adc #(datalines_clouds-1+5)
tay
lda RANDOM
and #%00000011
clc
adc #4 ; (4 to 7 = shapes 5 to 8)
bne fill_cloud
make_cloud2
; clear cloud 2 PMG memory
@@ -1037,6 +1041,10 @@ make_cloud2
randomize 0 (36-21-datalines_clouds)
adc #(datalines_clouds-1+21)
tay
lda RANDOM
and #%00000011
clc
adc #2 ; (2 to 5 = shapes 3 to 6)
bne fill_cloud
make_cloud3
; clear cloud 3 PMG memory
@@ -1050,10 +1058,11 @@ make_cloud3
randomize 0 (51-37-datalines_clouds)
adc #(datalines_clouds-1+37)
tay
lda RANDOM
and #%00000011 ; (0 to 3 = shapes 1 to 4)
; fill cloud PMG memory
fill_cloud
ldx #datalines_clouds-1
lda RANDOM
and #%00000111
bne not_shape_1
; shape1
BIN
View File
Binary file not shown.