martian-mike/scenes/saw_trap.tscn
2024-11-02 10:07:54 +03:00

25 lines
843 B
Text

[gd_scene load_steps=4 format=3 uid="uid://cnt3xr237kdqs"]
[ext_resource type="Script" path="res://scripts/trap.gd" id="1_23awk"]
[ext_resource type="Texture2D" uid="uid://cjc6mebcg5lks" path="res://assets/textures/other/Saw.png" id="1_34mhg"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1ysy5"]
radius = 18.0
[node name="SawTrap" type="Node2D"]
script = ExtResource("1_23awk")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_34mhg")
hframes = 8
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_1ysy5")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]