[gd_scene load_steps=9 format=3 uid="uid://c6w7lrydi43ts"] [ext_resource type="PackedScene" uid="uid://cbynoofsjcl45" path="res://core/polygon/polygon.tscn" id="1_cup10"] [ext_resource type="Script" path="res://levels/intro.gd" id="1_pgj82"] [ext_resource type="Script" path="res://core/audio/spatial_audio_player.gd" id="3_3eqhh"] [ext_resource type="AudioStream" uid="uid://cs6l2t3jtags8" path="res://assets/sounds/clock-tick-76039.mp3" id="3_6yss2"] [sub_resource type="Animation" id="Animation_h8pmj"] resource_name = "audio" length = 10.0 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimationPlayer/Polygon2D:position") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 1.96667, 4.46667, 6.46667, 6.76667, 7.23333, 8.13333), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1), "update": 0, "values": [Vector2(768, 328), Vector2(888, 178), Vector2(256, 208), Vector2(384, 328), Vector2(512, 336), Vector2(520, 408), Vector2(472, 408)] } [sub_resource type="Animation" id="Animation_i0i2l"] length = 0.001 [sub_resource type="AnimationLibrary" id="AnimationLibrary_ucyvg"] _data = { "RESET": SubResource("Animation_i0i2l"), "audio": SubResource("Animation_h8pmj") } [sub_resource type="GDScript" id="GDScript_e2u3o"] script/source = "extends AnimationPlayer func _ready() -> void: self.play(\"audio\") " [node name="Intro" type="Node2D"] script = ExtResource("1_pgj82") [node name="StaticBody2D" type="StaticBody2D" parent="."] [node name="Polygon" parent="StaticBody2D" instance=ExtResource("1_cup10")] polygon = PackedVector2Array(64, 200, 64, 432, -176, 432, -176, 512, 960, 512, 960, 384, 648, 384, 648, 344, 704, 344, 704, 288, 616, 288, 616, 232, 408, 232, 408, 304, 544, 304, 544, 384, 544, 432, 408, 432, 408, 392, 488, 392, 488, 352, 360, 352, 360, 440, 256, 440, 256, 320, 192, 320, 192, 440, 128, 440, 128, 200) [node name="Polygon2" parent="StaticBody2D" instance=ExtResource("1_cup10")] polygon = PackedVector2Array(448, 64, 448, 88, 512, 88, 512, 128, 384, 128, 384, 152, 640, 152, 640, 128, 688, 128, 688, 64) [node name="Area2D" type="Area2D" parent="."] [node name="Polygon" parent="Area2D" instance=ExtResource("1_cup10")] polygon = PackedVector2Array(128, 384, 192, 384, 192, 440, 128, 440) color = Color(1, 0.1, 0, 1) [node name="Polygon2" parent="Area2D" instance=ExtResource("1_cup10")] polygon = PackedVector2Array(256, 384, 360, 384, 360, 440, 256, 440) color = Color(1, 0.1, 0, 1) [node name="next_level" type="Area2D" parent="."] [node name="Polygon" parent="next_level" instance=ExtResource("1_cup10")] polygon = PackedVector2Array(416, 400, 416, 424, 440, 424, 440, 400) color = Color(0.484431, 0.687354, 1, 1) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_ucyvg") } script = SubResource("GDScript_e2u3o") [node name="Polygon2D" type="Polygon2D" parent="AnimationPlayer"] position = Vector2(768, 328) polygon = PackedVector2Array(0, -8, -8, 0, 0, 8, 8, 0) [node name="SpatialAudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="AnimationPlayer/Polygon2D"] stream = ExtResource("3_6yss2") volume_db = 5.0 autoplay = true script = ExtResource("3_3eqhh") detect_mod = 2 [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"] [connection signal="body_entered" from="next_level" to="." method="_on_next_level_body_entered"]