25 lines
845 B
Text
25 lines
845 B
Text
|
|
[gd_scene load_steps=4 format=3 uid="uid://cxfl4ogd53fb3"]
|
||
|
|
|
||
|
|
[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
|
||
|
|
|
||
|
|
[node name="SpikeBallTrap" type="Node2D"]
|
||
|
|
script = ExtResource("1_x0eb1")
|
||
|
|
|
||
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
|
texture = ExtResource("2_r55mb")
|
||
|
|
|
||
|
|
[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"]
|