2024-11-06 23:50:02 +01:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://cxfl4ogd53fb3"]
|
2024-11-02 08:07:54 +01:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/trap.gd" id="1_x0eb1"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dblhlyit4rs5x" path="res://assets/textures/other/Spiked Ball.png" id="2_r55mb"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_1ysy5"]
|
|
|
|
|
radius = 11.0
|
|
|
|
|
|
2024-11-06 23:50:02 +01:00
|
|
|
[sub_resource type="Animation" id="Animation_qms3f"]
|
|
|
|
|
resource_name = "move"
|
|
|
|
|
length = 2.0
|
|
|
|
|
loop_mode = 1
|
|
|
|
|
tracks/0/type = "value"
|
|
|
|
|
tracks/0/imported = false
|
|
|
|
|
tracks/0/enabled = true
|
|
|
|
|
tracks/0/path = NodePath("Area2D:position")
|
|
|
|
|
tracks/0/interp = 1
|
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
|
tracks/0/keys = {
|
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
|
"update": 0,
|
|
|
|
|
"values": [Vector2(0, 0), Vector2(100, 0)]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_7h84l"]
|
|
|
|
|
length = 0.001
|
|
|
|
|
tracks/0/type = "value"
|
|
|
|
|
tracks/0/imported = false
|
|
|
|
|
tracks/0/enabled = true
|
|
|
|
|
tracks/0/path = NodePath("Area2D:position")
|
|
|
|
|
tracks/0/interp = 1
|
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
|
tracks/0/keys = {
|
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
|
"update": 0,
|
|
|
|
|
"values": [Vector2(0, 0)]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_14ytm"]
|
|
|
|
|
_data = {
|
|
|
|
|
"RESET": SubResource("Animation_7h84l"),
|
|
|
|
|
"move": SubResource("Animation_qms3f")
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-02 08:07:54 +01:00
|
|
|
[node name="SpikeBallTrap" type="Node2D"]
|
|
|
|
|
script = ExtResource("1_x0eb1")
|
|
|
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
|
collision_layer = 8
|
|
|
|
|
collision_mask = 2
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
|
|
shape = SubResource("CircleShape2D_1ysy5")
|
|
|
|
|
|
2024-11-06 23:50:02 +01:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
|
|
|
|
|
texture = ExtResource("2_r55mb")
|
|
|
|
|
|
2024-11-02 08:07:54 +01:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
2024-11-06 23:50:02 +01:00
|
|
|
libraries = {
|
|
|
|
|
"": SubResource("AnimationLibrary_14ytm")
|
|
|
|
|
}
|
|
|
|
|
autoplay = "move"
|
2024-11-02 08:07:54 +01:00
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|