Add animation speed minigame
This commit is contained in:
101
docs/gyms/gym09_scene_switching/gym09_minigame_1.tscn
Normal file
101
docs/gyms/gym09_scene_switching/gym09_minigame_1.tscn
Normal file
@@ -0,0 +1,101 @@
|
||||
[gd_scene format=3 uid="uid://6uporiru4ny1"]
|
||||
|
||||
[ext_resource type="SpineSkeletonDataResource" uid="uid://c53t4xfil8g8g" path="res://docs/museums/spine/assets/raptor/raptor-data.tres" id="1_irao8"]
|
||||
[ext_resource type="Script" uid="uid://dhdwyav6b2ur3" path="res://docs/gyms/gym09_scene_switching/gym09_minigame_1.gd" id="2_script"]
|
||||
|
||||
[node name="Gym09Minigame1" type="Node2D" unique_id=26511728]
|
||||
script = ExtResource("2_script")
|
||||
progress_per_click = 5.0
|
||||
|
||||
[node name="SpineSprite" type="SpineSprite" parent="." unique_id=1663671115]
|
||||
skeleton_data_res = ExtResource("1_irao8")
|
||||
preview_skin = "Default"
|
||||
preview_animation = "roar"
|
||||
preview_frame = false
|
||||
preview_time = 0.0
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(578, 390)
|
||||
scale = Vector2(0.3, 0.3)
|
||||
|
||||
[node name="UILayer" type="Control" parent="." unique_id=-522947854]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 578.0
|
||||
offset_top = 566.0
|
||||
offset_right = 578.0
|
||||
offset_bottom = 566.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="UILayer" unique_id=-1400444195]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -120.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 120.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="TitleLabel" type="Label" parent="UILayer/VBoxContainer" unique_id=1058329447]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "ANIMATION SPEED CHALLENGE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="UILayer/VBoxContainer" unique_id=-1376495673]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="CurrentSpeedLabel" type="Label" parent="UILayer/VBoxContainer" unique_id=-1544803351]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Press: ???"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TimerLabel" type="Label" parent="UILayer/VBoxContainer" unique_id=1334428778]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Time: 30.0"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UILayer/VBoxContainer" unique_id=-1138046855]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="NormalButton" type="Button" parent="UILayer/VBoxContainer/HBoxContainer" unique_id=-2107521662]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Normal"
|
||||
|
||||
[node name="FastButton" type="Button" parent="UILayer/VBoxContainer/HBoxContainer" unique_id=929410871]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Fast"
|
||||
|
||||
[node name="HardButton" type="Button" parent="UILayer/VBoxContainer/HBoxContainer" unique_id=-727767392]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Hard"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="UILayer/VBoxContainer" unique_id=-246134786]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
horizontal_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="UILayer/VBoxContainer/HBoxContainer/NormalButton" to="." method="_on_normal_pressed"]
|
||||
[connection signal="pressed" from="UILayer/VBoxContainer/HBoxContainer/FastButton" to="." method="_on_fast_pressed"]
|
||||
[connection signal="pressed" from="UILayer/VBoxContainer/HBoxContainer/HardButton" to="." method="_on_hard_pressed"]
|
||||
Reference in New Issue
Block a user