Skip to content

Commit 3df0d5f

Browse files
committed
chore: replace levels with levels_redesign
1 parent e5b0a7d commit 3df0d5f

File tree

7 files changed

+201
-402
lines changed

7 files changed

+201
-402
lines changed

scenes/levels.tscn

Lines changed: 136 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,173 @@
11
[gd_scene load_steps=4 format=2]
22

3-
[ext_resource path="res://scripts/levels.gd" type="Script" id=1]
4-
[ext_resource path="res://assets/theme.theme" type="Theme" id=2]
3+
[ext_resource path="res://assets/theme.theme" type="Theme" id=1]
4+
[ext_resource path="res://scripts/levels.gd" type="Script" id=2]
55
[ext_resource path="res://scripts/border.gd" type="Script" id=3]
66

77
[node name="Viewport" type="MarginContainer"]
88
anchor_right = 1.0
99
anchor_bottom = 1.0
10-
theme = ExtResource( 2 )
11-
custom_constants/margin_right = 30
12-
custom_constants/margin_top = 30
13-
custom_constants/margin_left = 30
14-
custom_constants/margin_bottom = 30
10+
theme = ExtResource( 1 )
1511
__meta__ = {
1612
"_edit_use_anchors_": false
1713
}
1814

19-
[node name="LevelSelect" type="HBoxContainer" parent="."]
20-
margin_left = 30.0
21-
margin_top = 30.0
22-
margin_right = 1250.0
23-
margin_bottom = 690.0
24-
script = ExtResource( 1 )
15+
[node name="Levels" type="VBoxContainer" parent="."]
16+
margin_left = 20.0
17+
margin_top = 20.0
18+
margin_right = 1260.0
19+
margin_bottom = 700.0
20+
script = ExtResource( 2 )
2521

26-
[node name="LevelsBorder" type="MarginContainer" parent="LevelSelect"]
27-
margin_right = 303.0
28-
margin_bottom = 660.0
29-
size_flags_horizontal = 3
22+
[node name="NamesContainer" type="MarginContainer" parent="Levels"]
23+
margin_right = 1240.0
24+
margin_bottom = 59.0
3025
script = ExtResource( 3 )
3126

32-
[node name="Levels" type="VBoxContainer" parent="LevelSelect/LevelsBorder"]
27+
[node name="Names" type="HBoxContainer" parent="Levels/NamesContainer"]
3328
margin_left = 20.0
3429
margin_top = 20.0
35-
margin_right = 283.0
36-
margin_bottom = 640.0
30+
margin_right = 1220.0
31+
margin_bottom = 39.0
3732

38-
[node name="LevelsContainer" type="HBoxContainer" parent="LevelSelect/LevelsBorder/Levels"]
39-
margin_right = 263.0
33+
[node name="Previous" type="Label" parent="Levels/NamesContainer/Names"]
34+
margin_right = 557.0
35+
margin_bottom = 19.0
36+
size_flags_horizontal = 3
37+
text = "<"
38+
align = 2
39+
__meta__ = {
40+
"_edit_use_anchors_": false
41+
}
4042

41-
[node name="Buttons" type="VBoxContainer" parent="LevelSelect/LevelsBorder/Levels/LevelsContainer"]
42-
margin_right = 255.0
43+
[node name="Current" type="Label" parent="Levels/NamesContainer/Names"]
44+
margin_left = 565.0
45+
margin_right = 635.0
46+
margin_bottom = 19.0
47+
custom_colors/font_color = Color( 1, 0.690196, 0, 1 )
48+
text = "CURRENT"
49+
align = 1
50+
51+
[node name="Next" type="Label" parent="Levels/NamesContainer/Names"]
52+
margin_left = 643.0
53+
margin_right = 1200.0
54+
margin_bottom = 19.0
4355
size_flags_horizontal = 3
56+
text = ">"
4457

45-
[node name="Scores" type="VBoxContainer" parent="LevelSelect/LevelsBorder/Levels/LevelsContainer"]
46-
margin_left = 263.0
47-
margin_right = 263.0
58+
[node name="Level" type="HBoxContainer" parent="Levels"]
59+
margin_top = 67.0
60+
margin_right = 1240.0
61+
margin_bottom = 680.0
62+
size_flags_vertical = 3
63+
64+
[node name="Left" type="MarginContainer" parent="Levels/Level"]
65+
margin_right = 616.0
66+
margin_bottom = 613.0
67+
size_flags_horizontal = 3
68+
script = ExtResource( 3 )
4869

49-
[node name="Label" type="Label" parent="LevelSelect/LevelsBorder"]
70+
[node name="Code" type="Label" parent="Levels/Level/Left"]
5071
margin_left = 20.0
51-
margin_top = 555.0
52-
margin_right = 283.0
53-
margin_bottom = 640.0
54-
size_flags_vertical = 8
55-
text = "Use the WASD keys to adjust the size and speed of the simulation, and M to toggle sound."
72+
margin_top = 20.0
73+
margin_right = 596.0
74+
margin_bottom = 593.0
75+
size_flags_vertical = 3
76+
text = "This is a description for the level in the form of psuedocode.
77+
78+
def algorithm(parameter):
79+
return result"
5680
autowrap = true
5781

58-
[node name="Preview" type="VBoxContainer" parent="LevelSelect"]
59-
margin_left = 311.0
60-
margin_right = 1220.0
61-
margin_bottom = 660.0
82+
[node name="Right" type="VBoxContainer" parent="Levels/Level"]
83+
margin_left = 624.0
84+
margin_right = 1240.0
85+
margin_bottom = 613.0
6286
size_flags_horizontal = 3
63-
size_flags_stretch_ratio = 3.0
6487

65-
[node name="Display" type="MarginContainer" parent="LevelSelect/Preview"]
66-
margin_right = 909.0
67-
margin_bottom = 434.0
88+
[node name="Display" type="MarginContainer" parent="Levels/Level/Right"]
89+
margin_right = 616.0
90+
margin_bottom = 431.0
6891
size_flags_vertical = 3
69-
size_flags_stretch_ratio = 2.0
7092
script = ExtResource( 3 )
7193

72-
[node name="InfoBorder" type="MarginContainer" parent="LevelSelect/Preview"]
73-
margin_top = 442.0
74-
margin_right = 909.0
75-
margin_bottom = 660.0
76-
size_flags_vertical = 3
94+
[node name="Info" type="HBoxContainer" parent="Levels/Level/Right"]
95+
margin_top = 439.0
96+
margin_right = 616.0
97+
margin_bottom = 613.0
98+
99+
[node name="ControlsContainer" type="MarginContainer" parent="Levels/Level/Right/Info"]
100+
margin_right = 405.0
101+
margin_bottom = 174.0
102+
size_flags_horizontal = 3
103+
size_flags_stretch_ratio = 2.0
77104
script = ExtResource( 3 )
78105

79-
[node name="Info" type="HBoxContainer" parent="LevelSelect/Preview/InfoBorder"]
106+
[node name="Controls" type="Label" parent="Levels/Level/Right/Info/ControlsContainer"]
80107
margin_left = 20.0
81108
margin_top = 20.0
82-
margin_right = 889.0
83-
margin_bottom = 198.0
84-
custom_constants/separation = 50
85-
86-
[node name="Description" type="Label" parent="LevelSelect/Preview/InfoBorder/Info"]
87-
margin_right = 546.0
88-
margin_bottom = 178.0
89-
size_flags_horizontal = 3
90-
size_flags_vertical = 3
91-
size_flags_stretch_ratio = 2.0
92-
text = "This is a short description of the algorithm. It should tell how it works in a simple yet complete way and explain its relevance in computer science. It should be accessible to the layman while not being oversimplifying."
109+
margin_right = 385.0
110+
margin_bottom = 154.0
111+
size_flags_vertical = 1
112+
text = "These are the controls for the level."
93113
autowrap = true
94114

95-
[node name="Controls" type="Label" parent="LevelSelect/Preview/InfoBorder/Info"]
96-
margin_left = 596.0
97-
margin_right = 869.0
98-
margin_bottom = 178.0
115+
[node name="ScoresContainer" type="MarginContainer" parent="Levels/Level/Right/Info"]
116+
margin_left = 413.0
117+
margin_right = 616.0
118+
margin_bottom = 174.0
99119
size_flags_horizontal = 3
100-
size_flags_vertical = 3
101-
text = "These are the controls for the level. They should be tailored to each level for maximum efficiency and simplicity."
102-
autowrap = true
120+
script = ExtResource( 3 )
103121

104-
[node name="Timer" type="Timer" parent="LevelSelect"]
105-
autostart = true
106-
[connection signal="timeout" from="LevelSelect/Timer" to="LevelSelect" method="_on_Timer_timeout"]
122+
[node name="Scores" type="VBoxContainer" parent="Levels/Level/Right/Info/ScoresContainer"]
123+
margin_left = 20.0
124+
margin_top = 20.0
125+
margin_right = 183.0
126+
margin_bottom = 154.0
127+
128+
[node name="Header" type="HBoxContainer" parent="Levels/Level/Right/Info/ScoresContainer/Scores"]
129+
margin_right = 163.0
130+
margin_bottom = 19.0
131+
132+
[node name="Size" type="Label" parent="Levels/Level/Right/Info/ScoresContainer/Scores/Header"]
133+
margin_right = 40.0
134+
margin_bottom = 19.0
135+
text = "SIZE"
136+
137+
[node name="Time" type="Label" parent="Levels/Level/Right/Info/ScoresContainer/Scores/Header"]
138+
margin_left = 48.0
139+
margin_right = 163.0
140+
margin_bottom = 19.0
141+
size_flags_horizontal = 3
142+
text = "HIGH SCORE"
143+
align = 2
144+
145+
[node name="Data" type="HBoxContainer" parent="Levels/Level/Right/Info/ScoresContainer/Scores"]
146+
margin_top = 27.0
147+
margin_right = 163.0
148+
margin_bottom = 134.0
149+
150+
[node name="Sizes" type="Label" parent="Levels/Level/Right/Info/ScoresContainer/Scores/Data"]
151+
margin_right = 30.0
152+
margin_bottom = 107.0
153+
text = "8
154+
16
155+
32
156+
64
157+
128"
158+
159+
[node name="Times" type="Label" parent="Levels/Level/Right/Info/ScoresContainer/Scores/Data"]
160+
margin_left = 38.0
161+
margin_right = 163.0
162+
margin_bottom = 107.0
163+
size_flags_horizontal = 3
164+
text = "INF
165+
INF
166+
INF
167+
INF
168+
INF"
169+
align = 2
170+
uppercase = true
171+
172+
[node name="Timer" type="Timer" parent="Levels"]
173+
[connection signal="timeout" from="Levels/Timer" to="Levels" method="_on_Timer_timeout"]

0 commit comments

Comments
 (0)