From d958149f8507bc2cac68ebbfe05074aa798e276e Mon Sep 17 00:00:00 2001 From: Zakarya Date: Sat, 7 Oct 2023 17:56:55 -0700 Subject: [PATCH] Add stick tool image --- data/character/character.tscn | 13 +++-- textures/tools/stick.svg | 90 +++++++++++++++++++++++++++++++++ textures/tools/stick.svg.import | 37 ++++++++++++++ 3 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 textures/tools/stick.svg create mode 100644 textures/tools/stick.svg.import diff --git a/data/character/character.tscn b/data/character/character.tscn index 787f298..427c6cd 100644 --- a/data/character/character.tscn +++ b/data/character/character.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=12 format=3 uid="uid://4dsm0l7s6vki"] +[gd_scene load_steps=13 format=3 uid="uid://4dsm0l7s6vki"] [ext_resource type="Texture2D" uid="uid://gfxfxkfu8uk4" path="res://textures/character/character.svg" id="1_f7cgp"] [ext_resource type="Script" path="res://data/character/character.gd" id="1_qlitf"] +[ext_resource type="Texture2D" uid="uid://b7hh5vuwdmg0v" path="res://textures/tools/stick.svg" id="3_1h5n2"] [ext_resource type="Script" path="res://data/character/hud.gd" id="3_eogh2"] -[ext_resource type="Texture2D" uid="uid://ttb1b3k07qu5" path="res://textures/world/biome/forest/boulder.svg" id="4_l3xyh"] +[ext_resource type="Texture2D" uid="uid://ttb1b3k07qu5" path="res://textures/world/boulder.svg" id="4_t4sgq"] [ext_resource type="Texture2D" uid="uid://i7fjjduk8b0c" path="res://textures/world/biome/forest/tree.svg" id="5_j15j3"] [sub_resource type="CircleShape2D" id="CircleShape2D_653al"] @@ -74,7 +75,13 @@ target_position = Vector2(0, -100) scale = Vector2(0.2, 0.2) texture = ExtResource("1_f7cgp") +[node name="tool" type="Sprite2D" parent="body_pivot/body"] +z_index = -1 +position = Vector2(-80, -120) +texture = ExtResource("3_1h5n2") + [node name="hud" type="Control" parent="."] +z_index = 10 layout_mode = 3 anchors_preset = 0 offset_left = -432.0 @@ -145,7 +152,7 @@ grow_vertical = 0 [node name="stone_image" type="Sprite2D" parent="hud/inventory"] position = Vector2(24, 24) scale = Vector2(0.0457143, 0.0457143) -texture = ExtResource("4_l3xyh") +texture = ExtResource("4_t4sgq") [node name="stone_label" type="Label" parent="hud/inventory"] layout_mode = 0 diff --git a/textures/tools/stick.svg b/textures/tools/stick.svg new file mode 100644 index 0000000..23334a8 --- /dev/null +++ b/textures/tools/stick.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/textures/tools/stick.svg.import b/textures/tools/stick.svg.import new file mode 100644 index 0000000..972d082 --- /dev/null +++ b/textures/tools/stick.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b7hh5vuwdmg0v" +path="res://.godot/imported/stick.svg-efbbe88a8a268683b0447bea3090d390.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/tools/stick.svg" +dest_files=["res://.godot/imported/stick.svg-efbbe88a8a268683b0447bea3090d390.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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false