add the stone axe (currently unobtainable)

This commit is contained in:
2023-11-04 13:28:02 -07:00
parent 9eb4952d3b
commit bf126ec69c
4 changed files with 38 additions and 6 deletions

View File

@ -28,7 +28,7 @@ func change_tool(tool):
$body_pivot/body/tool.position = game_data.tools[tool].offset $body_pivot/body/tool.position = game_data.tools[tool].offset
func _ready(): func _ready():
change_tool("stick") change_tool("stick") #this is when the starting tool is set
func _physics_process(delta): func _physics_process(delta):
var pre_velocity = Vector2(0, 0) var pre_velocity = Vector2(0, 0)

View File

@ -2,7 +2,7 @@
[ext_resource type="Texture2D" uid="uid://gfxfxkfu8uk4" path="res://textures/character/character.svg" id="1_f7cgp"] [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="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"] [ext_resource type="PackedScene" uid="uid://vaapoj5q16ko" path="res://data/character/hud.tscn" id="4_vgn11"]
[sub_resource type="CircleShape2D" id="CircleShape2D_653al"] [sub_resource type="CircleShape2D" id="CircleShape2D_653al"]
@ -56,6 +56,6 @@ texture = ExtResource("1_f7cgp")
[node name="tool" type="Sprite2D" parent="body_pivot/body"] [node name="tool" type="Sprite2D" parent="body_pivot/body"]
z_index = -1 z_index = -1
texture = ExtResource("3_c34pt") texture = ExtResource("3_q8qyo")
[node name="hud" parent="." instance=ExtResource("4_vgn11")] [node name="hud" parent="." instance=ExtResource("4_vgn11")]

View File

@ -9,5 +9,9 @@ var tools = {
"stick": { "stick": {
"image": "res://textures/tools/stick.svg", "image": "res://textures/tools/stick.svg",
"offset": Vector2(-80, -120) "offset": Vector2(-80, -120)
},
"stone_axe": {
"image": "res://textures/tools/stone_axe.svg",
"offset": Vector2(-80, -195)
} }
} }

View File

@ -16,6 +16,23 @@
sodipodi:docname="stick.svg"> sodipodi:docname="stick.svg">
<defs <defs
id="defs2"> id="defs2">
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect12"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,6,0,1 @ F,0,0,1,0,6,0,1 @ F,0,0,1,0,6,0,1 @ F,0,0,1,0,6,0,1"
unit="px"
method="auto"
mode="F"
radius="6"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect <inkscape:path-effect
effect="fillet_chamfer" effect="fillet_chamfer"
id="path-effect836" id="path-effect836"
@ -42,8 +59,8 @@
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="1.1921418" inkscape:zoom="1.1921418"
inkscape:cx="420.92811" inkscape:cx="267.00347"
inkscape:cy="48.129777" inkscape:cy="55.679214"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
inkscape:document-rotation="0" inkscape:document-rotation="0"
@ -54,7 +71,8 @@
inkscape:window-height="1046" inkscape:window-height="1046"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-y="0" inkscape:window-y="0"
inkscape:window-maximized="1"> inkscape:window-maximized="1"
inkscape:snap-page="false">
<inkscape:grid <inkscape:grid
type="xygrid" type="xygrid"
id="grid10" id="grid10"
@ -86,5 +104,15 @@
inkscape:path-effect="#path-effect836" inkscape:path-effect="#path-effect836"
d="M 8.6458349,2.6458349 H 176.56251 a 6,6 45 0 1 6,6 v 9.1666641 a 6,6 135 0 1 -6,6 H 8.6458349 a 6,6 45 0 1 -6,-6 V 8.6458349 a 6,6 135 0 1 6,-6 z" d="M 8.6458349,2.6458349 H 176.56251 a 6,6 45 0 1 6,6 v 9.1666641 a 6,6 135 0 1 -6,6 H 8.6458349 a 6,6 45 0 1 -6,-6 V 8.6458349 a 6,6 135 0 1 6,-6 z"
sodipodi:type="rect" /> sodipodi:type="rect" />
<path
style="opacity:1;fill:#af7c23;fill-opacity:1;stroke:#966512;stroke-width:5.29166;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path10"
width="179.91667"
height="21.166664"
x="2.6458349"
y="2.6458349"
inkscape:path-effect="#path-effect12"
d="M 8.6458349,2.6458349 H 176.56251 a 6,6 45 0 1 6,6 v 9.1666641 a 6,6 135 0 1 -6,6 H 8.6458349 a 6,6 45 0 1 -6,-6 V 8.6458349 a 6,6 135 0 1 6,-6 z"
sodipodi:type="rect" />
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB