mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2024-11-28 15:08:20 -05:00
78 lines
2.3 KiB
Plaintext
78 lines
2.3 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://bsonrs8vhtly8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://54mfrkbp1kcg" path="res://assets/img/comet.png" id="1_6q67h"]
|
|
[ext_resource type="Script" path="res://scripts/comet.gd" id="1_33qxe"]
|
|
[ext_resource type="AudioStream" uid="uid://eb71wdy8dy4x" path="res://assets/sfx/explosion.wav" id="3_awuk4"]
|
|
|
|
[sub_resource type="Animation" id="Animation_8f1wt"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ExplodeSound:playing")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_y1taq"]
|
|
resource_name = "explode"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ExplodeSound:playing")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/1/type = "method"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.4),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"explode"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2g4hg"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_8f1wt"),
|
|
"explode": SubResource("Animation_y1taq")
|
|
}
|
|
|
|
[node name="Comet" type="Area2D"]
|
|
collision_layer = 2
|
|
collision_mask = 3
|
|
script = ExtResource("1_33qxe")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_6q67h")
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
polygon = PackedVector2Array(19, -27, 22, -25, 25, -24, 27, -21, 31, -17, 32, -3, 32, 27, 27, 30, -8, 29, -17, 28, -25, 26, -32, 22, -32, 18, -23, 8, -20, 7, -21, 2, -29, -17, -29, -26, -27, -29, -25, -32, -14, -32, 0, -30)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_2g4hg")
|
|
}
|
|
|
|
[node name="ExplodeSound" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("3_awuk4")
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|