Comets.gd/scenes/comet.tscn

133 lines
3.8 KiB
Plaintext
Raw Normal View History

2024-05-14 17:56:12 -04:00
[gd_scene load_steps=13 format=3 uid="uid://bsonrs8vhtly8"]
2024-05-12 00:47:14 -04:00
2024-05-12 22:41:12 -04:00
[ext_resource type="Script" path="res://scripts/comet.gd" id="1_33qxe"]
2024-05-14 17:56:12 -04:00
[ext_resource type="Shader" path="res://assets/shaders/PixelExplosion.gdshader" id="2_2l5nu"]
[ext_resource type="Texture2D" uid="uid://b8swdgkngg7a3" path="res://assets/img/comet2.png" id="3_7qdji"]
2024-05-12 22:41:12 -04:00
[ext_resource type="AudioStream" uid="uid://eb71wdy8dy4x" path="res://assets/sfx/explosion.wav" id="3_awuk4"]
2024-05-14 17:56:12 -04:00
[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")
2024-05-12 22:41:12 -04:00
[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]
}
2024-05-14 17:56:12 -04:00
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]
}
2024-05-12 22:41:12 -04:00
[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"
}]
}
2024-05-14 17:56:12 -04:00
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]
}
2024-05-12 22:41:12 -04:00
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2g4hg"]
_data = {
"RESET": SubResource("Animation_8f1wt"),
"explode": SubResource("Animation_y1taq")
}
2024-05-12 00:26:34 -04:00
2024-05-14 20:08:51 -04:00
[node name="Comet" type="Area2D" groups=["comet"]]
2024-05-12 22:41:12 -04:00
collision_layer = 2
collision_mask = 3
2024-05-12 00:47:14 -04:00
script = ExtResource("1_33qxe")
[node name="Sprite2D" type="Sprite2D" parent="."]
2024-05-14 17:56:12 -04:00
material = SubResource("ShaderMaterial_6s6e6")
texture = ExtResource("3_7qdji")
2024-05-12 00:47:14 -04:00
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2(0, -1.5)
polygon = PackedVector2Array(17, -29.5, 30, -19.5, 31, 2.5, 32, 28.5, 18, 33.5, -25, 32.5, -29, 25.5, -31, -18.5, -22, -26.5)
2024-05-12 01:03:18 -04:00
2024-05-12 22:41:12 -04:00
[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"]
2024-05-12 01:03:18 -04:00
[connection signal="body_entered" from="." to="." method="_on_body_entered"]