Files
net-gunner/templates/pitfall.tscn

51 lines
1.6 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://pxr0irlqarst"]
[ext_resource type="Script" uid="uid://c14c3ogbf7i33" path="res://scripts/pitfall.gd" id="1_pl1py"]
[ext_resource type="Texture2D" uid="uid://dvxj8a5dj535k" path="res://visuals/images/pitfall.png" id="2_4wfyu"]
[sub_resource type="Animation" id="Animation_eaqbt"]
resource_name = "expand"
length = 0.2
tracks/0/type = "scale_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 0.1, 0.1, 0.1, 0.1, 1, 1.3, 1.3, 1.3, 0.16666667, 1, 1, 1, 1)
[sub_resource type="Animation" id="Animation_r4vne"]
length = 0.001
tracks/0/type = "scale_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1)
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ywdt3"]
_data = {
&"RESET": SubResource("Animation_r4vne"),
&"expand": SubResource("Animation_eaqbt")
}
[node name="Pitfall" type="Node3D"]
script = ExtResource("1_pl1py")
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0.5, 0.2, 0.5)
cast_shadow = 0
pixel_size = 0.0156
texture = ExtResource("2_4wfyu")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_ywdt3")
}
autoplay = "expand"
[node name="Timer" type="Timer" parent="."]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]