summary refs log tree commit diff stats
path: root/randomizer/randomizer.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-04 11:30:04 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-04 11:30:04 -0500
commit6e04dbb1ebb811429bbfdb53bd8c4c079ef63732 (patch)
treeccda986e1acd9968248d6f499610c7e2677d0152 /randomizer/randomizer.gd
parentef22a8141b80344ef5e1ed6fd12779ecbe04ba58 (diff)
downloadlingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.tar.gz
lingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.tar.bz2
lingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.zip
Randomize layout of The Steady
Diffstat (limited to 'randomizer/randomizer.gd')
-rw-r--r--randomizer/randomizer.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/randomizer/randomizer.gd b/randomizer/randomizer.gd index 0738cb6..681567d 100644 --- a/randomizer/randomizer.gd +++ b/randomizer/randomizer.gd
@@ -3,8 +3,10 @@ extends Node
3const my_version = "0.1.0" 3const my_version = "0.1.0"
4 4
5var SCRIPT_generator 5var SCRIPT_generator
6var SCRIPT_steady
6 7
7var generator 8var generator
9var steady
8var thread = Thread.new() 10var thread = Thread.new()
9 11
10signal finished_randomizing 12signal finished_randomizing
@@ -21,6 +23,12 @@ func _thread_func(gen_seed):
21 generator.connect("generator_status", self, "statusUpdate") 23 generator.connect("generator_status", self, "statusUpdate")
22 generator.generate(gen_seed) 24 generator.generate(gen_seed)
23 25
26 var rng = RandomNumberGenerator.new()
27 rng.seed = generator.gen_seed
28
29 steady = SCRIPT_steady.new()
30 steady.generate(rng)
31
24 emit_signal("finished_randomizing") 32 emit_signal("finished_randomizing")
25 33
26 34