summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/potion.gd3
-rw-r--r--Objects/potion.pngbin0 -> 169 bytes
-rw-r--r--Objects/potion.png.import34
-rw-r--r--Objects/potion.png~bin0 -> 203 bytes
-rw-r--r--Objects/potion.tscn21
5 files changed, 58 insertions, 0 deletions
diff --git a/Objects/potion.gd b/Objects/potion.gd
new file mode 100644
index 0000000..75c336b
--- /dev/null
+++ b/Objects/potion.gd
@@ -0,0 +1,3 @@
+extends Area2D
+
+@export var heal_power = 2
diff --git a/Objects/potion.png b/Objects/potion.png
new file mode 100644
index 0000000..969152a
--- /dev/null
+++ b/Objects/potion.png
Binary files differ
diff --git a/Objects/potion.png.import b/Objects/potion.png.import
new file mode 100644
index 0000000..7b67e86
--- /dev/null
+++ b/Objects/potion.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c85chn8gpwbi4"
+path="res://.godot/imported/potion.png-f20ea806bb8634477399acb02decb4a1.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Objects/potion.png"
+dest_files=["res://.godot/imported/potion.png-f20ea806bb8634477399acb02decb4a1.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
diff --git a/Objects/potion.png~ b/Objects/potion.png~
new file mode 100644
index 0000000..db422b4
--- /dev/null
+++ b/Objects/potion.png~
Binary files differ
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")