-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcactus.tscn
25 lines (19 loc) · 903 Bytes
/
cactus.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[gd_scene load_steps=4 format=3 uid="uid://qj6rlqpighri"]
[ext_resource type="Texture2D" uid="uid://b2vonmsg8b088" path="res://assets/cactus.png" id="1_5e1pr"]
[ext_resource type="Script" path="res://cactus.gd" id="1_ow2st"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jj6ln"]
size = Vector2(26, 51.5)
[node name="Cactus" type="Area2D" groups=["obstacles"]]
priority = 1
script = ExtResource("1_ow2st")
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(-1, 0)
texture = ExtResource("1_5e1pr")
centered = false
offset = Vector2(-24, -60)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-3, -26.25)
shape = SubResource("RectangleShape2D_jj6ln")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="tree_entered" from="." to="." method="_on_tree_entered"]