From 6032b3dc82ccbb3710061059c90b7db40df19673 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 28 Sep 2024 15:27:57 +0200 Subject: next commit --- Objects/potion.gd | 3 +++ Objects/potion.png | Bin 0 -> 169 bytes Objects/potion.png.import | 34 ++++++++++++++++++++++++++++++++++ Objects/potion.png~ | Bin 0 -> 203 bytes Objects/potion.tscn | 21 +++++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 Objects/potion.gd create mode 100644 Objects/potion.png create mode 100644 Objects/potion.png.import create mode 100644 Objects/potion.png~ create mode 100644 Objects/potion.tscn (limited to 'Objects') 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 Binary files /dev/null and b/Objects/potion.png 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 Binary files /dev/null and b/Objects/potion.png~ 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") -- cgit v1.2.3