File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,7 @@ margin_top = 20.0
7373margin_right = 596.0
7474margin_bottom = 593.0
7575size_flags_vertical = 3
76- text = "\"\"\"
77- This is a description for the level in the form of psuedocode.
78- \"\"\"
76+ text = "This is a description for the level in the form of psuedocode.
7977
8078def algorithm(parameter):
8179 return result"
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ const MAX_WAIT = 4
1818const MIN_SIZE = 8
1919const MAX_SIZE = 128
2020
21- var _index = 0
21+ var _index = LEVELS . find ( GlobalScene . get_param ( "level" ))
2222var _level : ComparisonSort
23- var _size = ArrayModel .DEFAULT_SIZE
23+ var _size = GlobalScene . get_param ( "size" , ArrayModel .DEFAULT_SIZE )
2424
2525func _ready ():
26+ if _index == - 1 :
27+ _index = 0
2628 _level = LEVELS [_index ].new (ArrayModel .new (_size ))
2729 _level .connect ("done" , self , "_on_ComparisonSort_done" )
2830 $ NamesContainer/Names/Current .text = _level .NAME
You can’t perform that action at this time.
0 commit comments