Comets.gd/scenes/comet.tscn
2024-05-14 17:56:12 -04:00

132 lines
3.9 KiB
Plaintext

[gd_scene load_steps=13 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="Shader" path="res://assets/shaders/PixelExplosion.gdshader" id="2_2l5nu"]
[ext_resource type="AudioStream" uid="uid://eb71wdy8dy4x" path="res://assets/sfx/explosion.wav" id="3_awuk4"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_wa814"]
noise_type = 0
seed = 63
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_d4qtj"]
width = 64
height = 64
generate_mipmaps = false
noise = SubResource("FastNoiseLite_wa814")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_s5k64"]
noise_type = 0
seed = 33
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_708n3"]
width = 64
height = 64
generate_mipmaps = false
noise = SubResource("FastNoiseLite_s5k64")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_6s6e6"]
resource_local_to_scene = true
shader = ExtResource("2_2l5nu")
shader_parameter/progress = 0.0
shader_parameter/strength = 1.0
shader_parameter/noise_tex_normal = SubResource("NoiseTexture2D_708n3")
shader_parameter/noise_tex = SubResource("NoiseTexture2D_d4qtj")
[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]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:material:shader_parameter/progress")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[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"
}]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite2D:material:shader_parameter/progress")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.4),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
[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="."]
material = SubResource("ShaderMaterial_6s6e6")
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"]