[gd_scene load_steps=9 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"] [ext_resource type="AudioStream" uid="uid://cdricwi06nttp" path="res://sounds/beep/countdown_beep_high.mp3" id="3_fdp2i"] [ext_resource type="AudioStream" uid="uid://v3eqa857k2xo" path="res://sounds/beep/countdown_beep.mp3" id="3_fv4j3"] [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)] } tracks/4/type = "value" tracks/4/imported = false tracks/4/enabled = true tracks/4/path = NodePath("countdown_label:visible") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [true] } tracks/5/type = "value" tracks/5/imported = false tracks/5/enabled = true tracks/5/path = NodePath("countdown_label:text") tracks/5/interp = 1 tracks/5/loop_wrap = true tracks/5/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": ["3"] } tracks/6/type = "value" tracks/6/imported = false tracks/6/enabled = true tracks/6/path = NodePath("countdown_label:self_modulate") tracks/6/interp = 1 tracks/6/loop_wrap = true tracks/6/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 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="Animation" id="Animation_5vgpy"] resource_name = "game_start" length = 4.0 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("countdown_label:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0.0333333, 4), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [true, false] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("countdown_label:text") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 1, 2, 3), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": ["3", "2 ", "1", "Go!"] } tracks/2/type = "method" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("..") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(3), "transitions": PackedFloat32Array(1), "values": [{ "args": [], "method": &"_on_countdown_timeout" }] } tracks/3/type = "audio" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("../SFX/Player_beep") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "clips": [{ "end_offset": 0.0, "start_offset": 0.0, "stream": ExtResource("3_fv4j3") }, { "end_offset": 0.0, "start_offset": 0.0, "stream": ExtResource("3_fv4j3") }, { "end_offset": 0.0, "start_offset": 0.0, "stream": ExtResource("3_fv4j3") }, { "end_offset": 0.0, "start_offset": 0.0, "stream": ExtResource("3_fdp2i") }], "times": PackedFloat32Array(0, 1, 2, 3) } tracks/3/use_blend = true tracks/4/type = "value" tracks/4/imported = false tracks/4/enabled = true tracks/4/path = NodePath("countdown_label:self_modulate") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/keys = { "times": PackedFloat32Array(0, 3.43333, 3.93333), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_wuihg"] _data = { "RESET": SubResource("Animation_ph30r"), "game_end": SubResource("Animation_gjxtp"), "game_start": SubResource("Animation_5vgpy") } [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"] anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -34.5 offset_right = 20.0 offset_bottom = 34.5 grow_horizontal = 2 grow_vertical = 2 theme_override_font_sizes/font_size = 50 text = "3" horizontal_alignment = 1 vertical_alignment = 1 [node name="highscore_label" type="Label" parent="hud"] visible = false anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -57.5 offset_top = 2.70999 offset_right = 57.5 offset_bottom = 71.71 grow_horizontal = 2 grow_vertical = 2 theme_override_font_sizes/font_size = 50 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 [node name="SFX" type="Node" parent="."] [node name="Player_beep" type="AudioStreamPlayer" parent="SFX"] bus = &"Notifications" [connection signal="timeout" from="timer_close" to="." method="_on_timer_close_timeout"]