From bf126ec69c5f4a92c3cd6b196a5635bc8acedc72 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Sat, 4 Nov 2023 13:28:02 -0700 Subject: [PATCH] add the stone axe (currently unobtainable) --- data/character/character.gd | 2 +- data/character/character.tscn | 4 ++-- scripts/game_data.gd | 4 ++++ textures/tools/stick.svg | 34 +++++++++++++++++++++++++++++++--- 4 files changed, 38 insertions(+), 6 deletions(-) diff --git a/data/character/character.gd b/data/character/character.gd index 7faf677..1f82c1c 100644 --- a/data/character/character.gd +++ b/data/character/character.gd @@ -28,7 +28,7 @@ func change_tool(tool): $body_pivot/body/tool.position = game_data.tools[tool].offset func _ready(): - change_tool("stick") + change_tool("stick") #this is when the starting tool is set func _physics_process(delta): var pre_velocity = Vector2(0, 0) diff --git a/data/character/character.tscn b/data/character/character.tscn index a7283d0..74963b0 100644 --- a/data/character/character.tscn +++ b/data/character/character.tscn @@ -2,7 +2,7 @@ [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://crw5j541ciab8" path="res://textures/tools/none.svg" id="3_c34pt"] +[ext_resource type="Texture2D" uid="uid://b7hh5vuwdmg0v" path="res://textures/tools/stick.svg" id="3_q8qyo"] [ext_resource type="PackedScene" uid="uid://vaapoj5q16ko" path="res://data/character/hud.tscn" id="4_vgn11"] [sub_resource type="CircleShape2D" id="CircleShape2D_653al"] @@ -56,6 +56,6 @@ texture = ExtResource("1_f7cgp") [node name="tool" type="Sprite2D" parent="body_pivot/body"] z_index = -1 -texture = ExtResource("3_c34pt") +texture = ExtResource("3_q8qyo") [node name="hud" parent="." instance=ExtResource("4_vgn11")] diff --git a/scripts/game_data.gd b/scripts/game_data.gd index f6c7d69..a98cd8a 100644 --- a/scripts/game_data.gd +++ b/scripts/game_data.gd @@ -9,5 +9,9 @@ var tools = { "stick": { "image": "res://textures/tools/stick.svg", "offset": Vector2(-80, -120) + }, + "stone_axe": { + "image": "res://textures/tools/stone_axe.svg", + "offset": Vector2(-80, -195) } } diff --git a/textures/tools/stick.svg b/textures/tools/stick.svg index 23334a8..3a856d6 100644 --- a/textures/tools/stick.svg +++ b/textures/tools/stick.svg @@ -16,6 +16,23 @@ sodipodi:docname="stick.svg"> + + inkscape:window-maximized="1" + inkscape:snap-page="false"> +