diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 11:30:04 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 11:30:04 -0500 |
commit | 6e04dbb1ebb811429bbfdb53bd8c4c079ef63732 (patch) | |
tree | ccda986e1acd9968248d6f499610c7e2677d0152 /randomizer/randomizer.gd | |
parent | ef22a8141b80344ef5e1ed6fd12779ecbe04ba58 (diff) | |
download | lingo-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.gd | 8 |
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 | |||
3 | const my_version = "0.1.0" | 3 | const my_version = "0.1.0" |
4 | 4 | ||
5 | var SCRIPT_generator | 5 | var SCRIPT_generator |
6 | var SCRIPT_steady | ||
6 | 7 | ||
7 | var generator | 8 | var generator |
9 | var steady | ||
8 | var thread = Thread.new() | 10 | var thread = Thread.new() |
9 | 11 | ||
10 | signal finished_randomizing | 12 | signal 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 | ||