teststrecke-game/scenes/game.tscn
2024-11-10 18:13:14 +01:00

191 lines
4.9 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://cotth8e5rtioe"]
[ext_resource type="Script" path="res://scripts/game.gd" id="1_7syh4"]
[ext_resource type="Script" path="res://scripts/times.gd" id="2_80mhm"]
[sub_resource type="Animation" id="Animation_ph30r"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("times_container:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(92.1386, 36.868)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("overlaycolor:self_modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("timer:self_modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("times_container:scale")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_gjxtp"]
resource_name = "game_end"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("times_container:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.7, 2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(92.1386, 36.868), Vector2(92.1386, 36.868), Vector2(410, 72)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("overlaycolor:self_modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.966667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(0, 0, 0, 0.635294)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("timer:self_modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.0333333, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("times_container:scale")
tracks/3/interp = 2
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.7, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.5, 1.5)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wuihg"]
_data = {
"RESET": SubResource("Animation_ph30r"),
"game_end": SubResource("Animation_gjxtp")
}
[node name="Game" type="Node2D"]
script = ExtResource("1_7syh4")
[node name="hud" type="CanvasLayer" parent="."]
[node name="debuglabel" type="Label" parent="hud"]
visible = false
z_index = 8
offset_left = 14.0
offset_top = 535.0
offset_right = 430.0
offset_bottom = 580.0
theme_override_font_sizes/font_size = 20
text = "adsf"
vertical_alignment = 1
[node name="timer" type="Label" parent="hud"]
z_index = 8
offset_left = 17.0
offset_top = 562.0
offset_right = 433.0
offset_bottom = 631.0
theme_override_font_sizes/font_size = 50
text = "0.000"
vertical_alignment = 1
[node name="countdown_label" type="Label" parent="hud"]
offset_left = 604.0
offset_top = 312.0
offset_right = 644.0
offset_bottom = 342.0
theme_override_font_sizes/font_size = 50
text = "3"
horizontal_alignment = 1
vertical_alignment = 1
[node name="overlaycolor" type="ColorRect" parent="hud"]
self_modulate = Color(1, 1, 1, 0)
offset_left = -25.0
offset_top = -20.0
offset_right = 1190.0
offset_bottom = 682.0
color = Color(0.482353, 0.482353, 0.482353, 0.52549)
[node name="times_container" type="HFlowContainer" parent="hud"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -483.861
offset_top = -287.132
offset_right = -425.861
offset_bottom = -210.132
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("2_80mhm")
[node name="game_hud_animations" type="AnimationPlayer" parent="hud"]
libraries = {
"": SubResource("AnimationLibrary_wuihg")
}
[node name="Camera2D" type="Camera2D" parent="."]
[node name="cars" type="Node" parent="."]
[node name="countdown" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[node name="timer_close" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
[connection signal="timeout" from="countdown" to="." method="_on_countdown_timeout"]
[connection signal="timeout" from="timer_close" to="." method="_on_timer_close_timeout"]