summaryrefslogtreecommitdiff
path: root/Objects/potion.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/potion.tscn')
-rw-r--r--Objects/potion.tscn21
1 files changed, 21 insertions, 0 deletions
diff --git a/Objects/potion.tscn b/Objects/potion.tscn
new file mode 100644
index 0000000..7a53025
--- /dev/null
+++ b/Objects/potion.tscn
@@ -0,0 +1,21 @@
+[gd_scene load_steps=4 format=3 uid="uid://cqii1000vi1y3"]
+
+[ext_resource type="Texture2D" uid="uid://c85chn8gpwbi4" path="res://Objects/potion.png" id="1_ru42e"]
+[ext_resource type="Script" path="res://Objects/potion.gd" id="1_x6nne"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_7il5r"]
+size = Vector2(2, 10)
+
+[node name="Potion" type="Area2D" groups=["object_heal"]]
+collision_layer = 4
+script = ExtResource("1_x6nne")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture_filter = 1
+position = Vector2(0, -6)
+texture = ExtResource("1_ru42e")
+centered = false
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+position = Vector2(3, 1)
+shape = SubResource("RectangleShape2D_7il5r")