[gd_scene load_steps=7 format=2] [ext_resource path="res://icon.gd" type="Script" id=1] [ext_resource path="res://ghost.png" type="Texture" id=2] [ext_resource path="res://Music/Death Sounds/Death 6.wav" type="AudioStream" id=3] [sub_resource type="Animation" id=1] resource_name = "Death_1" length = 0.6 step = 0.02 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.05, 0.2, 0.35, 0.5 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1 ), "update": 1, "values": [ 3, 4, 5, 6, 7 ] } tracks/1/type = "bezier" tracks/1/path = NodePath(".:rotation_degrees") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 45, -0.25, 0, 0.25, 0 ), "times": PoolRealArray( 0.02, 0.6 ) } tracks/2/type = "value" tracks/2/path = NodePath(".:fall_speed") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0, 0.02 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ 0.1, 0.6 ] } tracks/3/type = "value" tracks/3/path = NodePath(".:side_speed") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0, 0.02 ), "transitions": PoolRealArray( 1, 1 ), "update": 1, "values": [ 0.0, 0.6 ] } tracks/4/type = "method" tracks/4/path = NodePath("AudioStreamPlayer") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "values": [ { "args": [ 0.0 ], "method": "play" } ] } [sub_resource type="Animation" id=2] resource_name = "death_2" length = 0.8 loop = true step = 0.05 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 8, 8, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9 ] } tracks/1/type = "method" tracks/1/path = NodePath(".") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ), "values": [ { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" }, { "args": [ 0.393 ], "method": "rotate" } ] } [sub_resource type="Animation" id=3] length = 0.8 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1 ), "update": 1, "values": [ 0, 1, 2, 1, 0 ] } [node name="Player" type="KinematicBody2D"] collision_layer = 3 collision_mask = 3 script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] scale = Vector2( 1.5, 1.5 ) texture = ExtResource( 2 ) flip_h = true hframes = 10 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] polygon = PoolVector2Array( -38.2026, -11.1002, -47.9113, -4.44284, -54.846, 5.82057, -54.846, 12.7553, -58.294, 20.3933, -58.0305, 23.5555, -55.9223, 31.9882, -54.0777, 39.6303, -49.3343, 44.3736, -43.1956, 49.6481, -36.5383, 54.9185, -31.9585, 52.5578, -24.9833, 55.3646, -19.2254, 48.3549, -15.4567, 44.6551, -10.4633, 41.5957, -6.45782, 32.5833, -9.46196, 24.0716, -12.4054, 17.1935, -12.705, 8.5349, -17.1849, 0.365776, -21.5592, -10.8228 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] anims/Death_1 = SubResource( 1 ) anims/death_2 = SubResource( 2 ) anims/idle = SubResource( 3 ) [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] stream = ExtResource( 3 ) [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."] position = Vector2( -9.45632, 9.18611 ) scale = Vector2( 0.540693, 0.405605 ) [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]