Initial commit

master
Martin Felis 2021-06-12 17:48:58 +02:00
commit f0657fbfa6
27 changed files with 1409 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.import/*
.*.swp

39
DebugLayer.gd Normal file
View File

@ -0,0 +1,39 @@
extends Node2D
var NavTarget
func _ready():
NavTarget = get_node("NavTarget")
func draw_nav_target_box():
var rect = Rect2 (NavTarget.GridCoords * Globals.GRID_SIZE, Vector2(Globals.GRID_SIZE, Globals.GRID_SIZE))
draw_rect (rect, "#99000044", true)
func _process(_delta):
update()
func _draw():
var offset = -Vector2(Globals.WIDTH, Globals.HEIGHT) * 0.5
draw_nav_target_box()
draw_set_transform(offset, 0, Vector2.ONE)
# outer bounds
draw_line(Vector2(0,0), Vector2(Globals.WIDTH, 0), Globals.GRID_COLOR)
draw_line(Vector2(0,Globals.HEIGHT), Vector2(Globals.WIDTH, Globals.HEIGHT), Globals.GRID_COLOR)
draw_line(Vector2(0,0), Vector2(0, Globals.HEIGHT), Globals.GRID_COLOR)
draw_line(Vector2(Globals.WIDTH,0), Vector2(Globals.WIDTH, Globals.HEIGHT), Globals.GRID_COLOR)
# inner lines
var columns = floor (Globals.WIDTH / Globals.GRID_SIZE)
var rows = floor (Globals.HEIGHT / Globals.GRID_SIZE)
for x in range (columns):
draw_line (Vector2(x * Globals.GRID_SIZE, 0), Vector2(x * Globals.GRID_SIZE, Globals.HEIGHT), Globals.GRID_COLOR)
for y in range (rows):
draw_line (Vector2(0, y * Globals.GRID_SIZE), Vector2(Globals.WIDTH, y * Globals.GRID_SIZE), Globals.GRID_COLOR)
draw_line(Vector2(0, Globals.HEIGHT * 0.5), Vector2(Globals.WIDTH, Globals.HEIGHT * 0.5), "#aa0000", 3)
draw_line(Vector2(Globals.WIDTH * 0.5, 0), Vector2(Globals.WIDTH * 0.5, Globals.HEIGHT), "#00aa00", 3)

16
DigSite.tscn Normal file
View File

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/digsite.svg" type="Texture" id=1]
[ext_resource path="res://assets/treasure.svg" type="Texture" id=2]
[node name="DigSite" type="Node2D"]
[node name="treasure" type="Sprite" parent="."]
position = Vector2( -2.6727, -19.5998 )
z_index = 3
texture = ExtResource( 2 )
[node name="digsite" type="Sprite" parent="."]
visible = false
z_index = 3
texture = ExtResource( 1 )

24
GameCamera.gd Normal file
View File

@ -0,0 +1,24 @@
extends Camera2D
var Widgets
# Called when the node enters the scene tree for the first time.
func _ready():
Widgets = get_node("Widgets")
pass # Replace with function body.
func _process(_delta):
var win_size = OS.get_window_safe_area().size
Widgets.margin_left = -win_size.x * 0.5
Widgets.margin_top = -win_size.y * 0.5
pass
func screenToWorld(pos):
var screen_size = OS.get_window_safe_area().size
print ("pos", pos)
print ("Screen size: ", screen_size)
var camera_coords = pos - screen_size * 0.5
print ("Camera coords: ", camera_coords)
var world_coords = camera_coords + self.transform.origin
print ("world coords: ", world_coords)
return world_coords

59
GameScene.gd Normal file
View File

@ -0,0 +1,59 @@
extends Node2D
var Player
var Level
var GameCamera
var DebugLayer
var NavTarget
var DebugLabel
var DigSite
var DiggedSites = {}
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
Player = get_node("Player")
Level = get_node("Level")
GameCamera = get_node("GameCamera")
DebugLayer = get_node("DebugLayer")
NavTarget = get_node("DebugLayer/NavTarget")
DebugLabel = GameCamera.get_node("Widgets/HBoxContainer/DebugLabel")
DigSite = preload("res://DigSite.tscn")
Globals.DebugLabel = DebugLabel
Player.connect("DigSiteReached", self, "handle_dig_site_reached")
Player.connect("DigStop", self, "handle_dig_stop")
func handle_dig_site_reached(dig_grid_coords):
if not DiggedSites.has(dig_grid_coords):
print ("Starting digging at ", dig_grid_coords)
var new_digsite = DigSite.instance()
new_digsite.transform.origin = dig_grid_coords
print ("digsite world:", new_digsite.transform.origin)
Level.add_child(new_digsite)
DiggedSites[dig_grid_coords] = true
Player.start_dig()
func handle_dig_stop():
print ("Stopping digging")
func _process(delta):
Globals.ClearDebugLabel()
GameCamera.transform.origin = Player.transform.origin
func _input(event):
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.pressed:
var event_world_pos = GameCamera.screenToWorld(event.position)
NavTarget.transform.origin = event_world_pos
Player.NavTarget = Globals.WorldToGridCenter(event_world_pos)
DebugLabel.text = str(event_world_pos)
if event.button_index == BUTTON_WHEEL_UP and event.pressed:
print("Wheel up")

81
GameScene.tscn Normal file
View File

@ -0,0 +1,81 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://assets/island.svg" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://assets/water.svg" type="Texture" id=3]
[ext_resource path="res://assets/pirate.svg" type="Texture" id=4]
[ext_resource path="res://GameScene.gd" type="Script" id=5]
[ext_resource path="res://assets/pirate_with_shovel.svg" type="Texture" id=6]
[ext_resource path="res://DebugLayer.gd" type="Script" id=7]
[ext_resource path="res://GameCamera.gd" type="Script" id=8]
[ext_resource path="res://NavTarget.gd" type="Script" id=9]
[ext_resource path="res://DigSite.tscn" type="PackedScene" id=10]
[node name="GameScene" type="Node2D"]
script = ExtResource( 5 )
[node name="DebugLayer" type="Node2D" parent="."]
z_index = 2
script = ExtResource( 7 )
[node name="NavTarget" type="Node2D" parent="DebugLayer"]
z_index = 5
script = ExtResource( 9 )
[node name="Level" type="Node2D" parent="."]
z_index = -10
[node name="Water" type="Sprite" parent="Level"]
scale = Vector2( 1098, 303 )
texture = ExtResource( 3 )
[node name="island" type="Sprite" parent="Level"]
z_index = 1
texture = ExtResource( 1 )
[node name="DigSite" parent="Level" instance=ExtResource( 10 )]
visible = false
z_index = 3
[node name="GameCamera" type="Camera2D" parent="."]
current = true
script = ExtResource( 8 )
[node name="Widgets" type="Control" parent="GameCamera"]
margin_left = 8.0
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="GameCamera/Widgets"]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DebugLabel" type="Label" parent="GameCamera/Widgets/HBoxContainer"]
self_modulate = Color( 0, 0, 0, 1 )
margin_top = 4.0
margin_right = 109.0
margin_bottom = 35.0
text = "Blabuiaeuiaeuiae
"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player" type="Node2D" parent="."]
z_index = -5
script = ExtResource( 2 )
[node name="PirateSprite" type="Sprite" parent="Player"]
texture = ExtResource( 4 )
[node name="PirateWithShovelSprite" type="Sprite" parent="Player"]
texture = ExtResource( 6 )
[node name="ShovelTargetOffset" type="Node2D" parent="Player"]
position = Vector2( 88, 74 )

41
Globals.gd Normal file
View File

@ -0,0 +1,41 @@
extends Node
const WIDTH=1024
const HEIGHT=1024
const GRID_SIZE=float(64.0)
const GRID_COLOR="#000000"
const SHOVEL_DURATION=1
var DebugLabel = null
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func ClearDebugLabel():
if DebugLabel == null:
return
DebugLabel.text = ""
func DebugLabelAdd(text):
if DebugLabel == null:
return
DebugLabel.text = DebugLabel.text + text + "\n"
func WorldToGridCoord(world_pos):
return Vector2(
floor (world_pos.x / Globals.GRID_SIZE),
floor (world_pos.y / Globals.GRID_SIZE)
)
func WorldToGridCenter(world_pos):
return WorldToGridCoord(world_pos) * GRID_SIZE + Vector2(GRID_SIZE, GRID_SIZE) * 0.5
func GridCenterToWorldCoord(grid_coord):
return grid_coord * GRID_SIZE + Vector2(GRID_SIZE, GRID_SIZE) * 0.5
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

26
Island.tscn Normal file
View File

@ -0,0 +1,26 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/island.svg" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://assets/water.svg" type="Texture" id=3]
[ext_resource path="res://assets/pirate.svg" type="Texture" id=4]
[node name="Node2D" type="Node2D"]
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 1098, 303 )
texture = ExtResource( 3 )
[node name="island" type="Sprite" parent="."]
position = Vector2( 485, 278 )
texture = ExtResource( 1 )
[node name="Player" type="Node2D" parent="."]
script = ExtResource( 2 )
[node name="pirate" type="Sprite" parent="Player"]
position = Vector2( 228, 207 )
texture = ExtResource( 4 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true

10
Level.gd Normal file
View File

@ -0,0 +1,10 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

16
NavTarget.gd Normal file
View File

@ -0,0 +1,16 @@
extends Node2D
var GridCoords = Vector2.ZERO
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _process(_delta):
GridCoords = Globals.WorldToGridCoord(self.transform.origin)
Globals.DebugLabelAdd(str("GridCoords: ", GridCoords))
Globals.DebugLabelAdd(str("Nav Origin: ", self.transform.origin))
func _draw():
draw_circle (Vector2.ZERO, 5, "#ff0000")

82
Player.gd Normal file
View File

@ -0,0 +1,82 @@
extends Node2D
enum PlayerState {
IDLE,
WALKING,
SHOVEL
}
signal DigSiteReached
signal DigStop
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var speed = 200
var isInteracting = false
var ShovelSprite
var shovel_offset = Vector2.ZERO
var NavTarget = Vector2.ZERO
var State = PlayerState.IDLE
var ShovelTimer = 0
# Called when the node enters the scene tree for the first time.
func _ready():
ShovelSprite = get_node("PirateWithShovelSprite")
var ShovelTargetOffset = get_node("ShovelTargetOffset")
shovel_offset = ShovelTargetOffset.transform.origin - self.transform.origin
func start_dig():
self.State = PlayerState.SHOVEL
self.ShovelTimer = Globals.SHOVEL_DURATION
func update_state(delta):
if State == PlayerState.SHOVEL:
ShovelTimer = ShovelTimer - delta
if ShovelTimer < 0:
emit_signal ("DigStop")
ShovelTimer = 0
State = PlayerState.IDLE
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
update_state(delta)
Globals.DebugLabelAdd(str("Player.NavTarget: ", NavTarget))
var direction = Vector2.ZERO
if Input.is_action_pressed("walk_left"):
direction.x = direction.x - 1
if Input.is_action_pressed("walk_right"):
direction.x = direction.x + 1
if Input.is_action_pressed("walk_up"):
direction.y = direction.y - 1
if Input.is_action_pressed("walk_down"):
direction.y = direction.y + 1
direction = direction.normalized()
var movement_target = NavTarget - shovel_offset
var vec_to_target = movement_target - self.transform.origin
var dist_to_target = vec_to_target.length()
Globals.DebugLabelAdd(str("Direction: ", direction))
if dist_to_target > speed * delta:
direction = (vec_to_target).normalized()
var velocity = direction * speed
self.transform.origin = self.transform.origin + velocity * delta
self.State = PlayerState.WALKING
else:
direction = Vector2.ZERO
self.transform.origin = movement_target
if self.State == PlayerState.WALKING:
emit_signal ("DigSiteReached", Globals.WorldToGridCenter(NavTarget))
ShovelSprite.visible = State == PlayerState.SHOVEL

102
assets/digsite.svg Normal file
View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64.000008"
height="30.179886"
viewBox="0 0 16.933334 7.9850947"
version="1.1"
id="svg2692"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="digsite.svg">
<defs
id="defs2686" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="-7.653382"
inkscape:cy="43.65893"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
units="px" />
<metadata
id="metadata2689">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-29.541314,-128.61573)">
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 34.544083,128.93186 1.195111,-0.16396 3.593383,1.7116 -1.935728,2.77254 -3.361939,0.7875 -0.214497,-4.11707 z"
id="path3294-7-56"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 40.697914,129.14651 0.761042,0.93594 0.404623,3.95958 -3.374681,-0.21337 -2.419653,-2.46334 3.406264,-2.32242 z"
id="path3294-7-2"
inkscape:connector-curvature="0" />
<path
style="fill:#803300;fill-rule:evenodd;stroke:#552200;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 34.091688,131.05237 1.70677,-0.55267 4.421347,0.0488 2.06438,0.81275 -1.86932,1.49545 -4.600152,0.29259 z"
id="path3367"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 33.63651,129.70326 -1.170293,0.29255 -2.698386,2.92586 2.828439,1.85309 3.41354,-0.52011 -1.332969,-3.90122 z"
id="path3294"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 42.379452,129.7523 1.170293,0.29256 2.698386,2.92586 -2.828438,1.85309 -3.413542,-0.52012 1.332972,-3.90121 z"
id="path3294-7"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 35.059732,136.44252 -1.022112,-0.64067 -1.659356,-3.61781 3.263332,-0.88581 3.084536,1.55191 -2.475842,3.29643 z"
id="path3294-7-5"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.595;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 39.287126,136.24148 -1.022112,-0.64067 -1.659356,-3.6178 3.263332,-0.88582 3.084536,1.55191 -2.475842,3.29644 z"
id="path3294-7-5-3"
inkscape:connector-curvature="0" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 2"
transform="translate(-29.541314,-128.61573)" />
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

34
assets/digsite.svg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/digsite.svg-3d544b72e8538c493ff2c7b0ea3cbdfe.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/digsite.svg"
dest_files=[ "res://.import/digsite.svg-3d544b72e8538c493ff2c7b0ea3cbdfe.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

67
assets/island.svg Normal file
View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="139.35532mm"
height="125.49757mm"
viewBox="0 0 139.35532 125.49757"
version="1.1"
id="svg8"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="island.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="312.85389"
inkscape:cy="337.47507"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-8.6943134,-3.0129486)">
<path
style="fill:#ffeeaa;fill-rule:evenodd;stroke:#d4aa00;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 72.448245,3.772971 C 65.980061,1.658797 55.016056,4.906704 54.81119,13.363242 51.466096,23.234917 48.104196,34.130641 39.035349,40.30919 32.24372,45.356858 28.045284,53.351857 20.869499,57.636082 11.877884,64.673833 9.601484,76.926242 8.879374,87.700692 c -0.318782,6.98719 0.629337,16.185348 7.915513,19.351208 8.36195,2.63125 17.202915,0.29095 25.78554,1.06673 7.363278,0.15684 14.864377,-0.5699 22.136366,0.53179 8.771839,3.45495 15.159785,11.59907 24.703082,13.32694 8.16537,3.93412 17.744925,8.94225 26.837875,4.91431 7.50153,-3.21306 15.69779,-5.14523 22.87085,-8.76448 6.0229,-4.14004 11.13169,-11.99587 7.66451,-19.344068 -2.56103,-10.04092 -13.42752,-19.1707 -13.18616,-29.602397 1.89674,-11.058764 9.66586,-23.415656 12.35357,-34.317384 1.82227,-7.299459 -5.23263,-11.64173 -9.14978,-16.570586 -4.03468,-4.465983 -8.02062,-8.976966 -11.89932,-13.579434 -9.46,-3.615159 -19.41382,0.444482 -28.148065,4.137063 -8.01856,5.915223 -17.846926,-2.963239 -24.31511,-5.077413 z"
id="path815"
inkscape:connector-curvature="0"
sodipodi:nodetypes="zccccccccccccccccz" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

34
assets/island.svg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/island.svg-e09d289820221828f73255b2ef99765b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/island.svg"
dest_files=[ "res://.import/island.svg-e09d289820221828f73255b2ef99765b.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

154
assets/pirate.svg Normal file
View File

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="67.73333mm"
height="67.73333mm"
viewBox="0 0 67.73333 67.73333"
version="1.1"
id="svg1420"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="pirate.svg">
<defs
id="defs1414" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="193.12383"
inkscape:cy="-78.795116"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="false" />
<metadata
id="metadata1417">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-22.735567,-21.843752)">
<rect
style="fill:none;fill-opacity:1;stroke:none;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect2086"
width="67.73333"
height="67.73333"
x="22.735567"
y="21.843752" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.97067016;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1965"
cx="58.817451"
cy="69.21006"
rx="12.306589"
ry="13.607285" />
<ellipse
style="fill:#ffccaa;fill-opacity:1;stroke:#000000;stroke-width:0.97067016;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1967"
cx="58.517292"
cy="43.996555"
rx="12.806856"
ry="13.807391" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.64763337;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 45.064956,44.376975 70.573747,37.843264"
id="path1971"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:#1a1a1a;fill-rule:evenodd;stroke:#000000;stroke-width:0.57276243;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 51.618464,41.275314 0.383478,2.521691 1.51754,1.03021 2.8015,-0.100052 c 1.76379,-0.867768 1.776356,-2.027407 2.001071,-3.151687 z"
id="path1975"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 66.571604,49.474492 c -10e-7,0.870314 -5.010624,3.777022 -8.229406,3.777022 -3.218781,0 -8.129351,-3.156842 -8.129352,-4.027156 -10e-7,-0.870314 4.91057,0.875469 8.129352,0.875469 3.218782,0 8.229406,-1.495649 8.229406,-0.625335 z"
id="path1982"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssss" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1985"
cx="64.220352"
cy="42.645832"
rx="2.501339"
ry="1.4507767" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1987"
cx="64.320404"
cy="42.370686"
rx="0.95050877"
ry="0.92549545" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.87224609;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 58.317186,44.346745 c -0.48074,1.110566 -2.780721,3.873885 0.100053,3.501876"
id="path1991"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<g
id="g2020"
transform="matrix(0.7487091,0,0,0.7487091,22.654087,15.131824)">
<rect
y="60.764866"
x="34.11235"
height="4.7613068"
width="29.098907"
id="rect1993"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="70.426895"
x="31.608257"
height="5.3861618"
width="33.261906"
id="rect1993-3"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
inkscape:transform-center-y="-1.7953869"
inkscape:transform-center-x="4.2522321"
y="80.801094"
x="34.773071"
height="3.9466267"
width="27.487846"
id="rect1993-6"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<path
style="fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-width:1.24660063;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 42.10851,46.397844 11.91124,-6.273146 17.704613,-3.131888 -1.152956,-4.88569 -3.659617,-4.307194 -6.593533,-2.41333 -6.560565,1.23882 -6.046183,2.763322 -4.202251,12.206536 -5.602999,-3.001607 -1.400748,5.803105 5.002677,4.602464 z"
id="path1969"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

34
assets/pirate.svg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/pirate.svg-b5137b2528ef058c6c14f8ea13b79308.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/pirate.svg"
dest_files=[ "res://.import/pirate.svg-b5137b2528ef058c6c14f8ea13b79308.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,178 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="67.73333mm"
height="67.73333mm"
viewBox="0 0 67.73333 67.73333"
version="1.1"
id="svg1420"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="pirate_with_shovel.svg">
<defs
id="defs1414" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.8"
inkscape:cx="201.04361"
inkscape:cy="80.467705"
inkscape:document-units="mm"
inkscape:current-layer="layer2"
showgrid="false"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="false" />
<metadata
id="metadata1417">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-22.735567,-21.843752)">
<rect
style="fill:none;fill-opacity:1;stroke:none;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect2086"
width="67.73333"
height="67.73333"
x="22.735567"
y="21.843752" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.97067016;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1965"
cx="58.817451"
cy="69.21006"
rx="12.306589"
ry="13.607285" />
<ellipse
style="fill:#ffccaa;fill-opacity:1;stroke:#000000;stroke-width:0.97067016;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1967"
cx="58.517292"
cy="43.996555"
rx="12.806856"
ry="13.807391" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.64763337;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 45.064956,44.376975 70.573747,37.843264"
id="path1971"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:#1a1a1a;fill-rule:evenodd;stroke:#000000;stroke-width:0.57276243;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 51.618464,41.275314 0.383478,2.521691 1.51754,1.03021 2.8015,-0.100052 c 1.76379,-0.867768 1.776356,-2.027407 2.001071,-3.151687 z"
id="path1975"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 66.571604,49.474492 c -10e-7,0.870314 -5.010624,3.777022 -8.229406,3.777022 -3.218781,0 -8.129351,-3.156842 -8.129352,-4.027156 -10e-7,-0.870314 4.91057,0.875469 8.129352,0.875469 3.218782,0 8.229406,-1.495649 8.229406,-0.625335 z"
id="path1982"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssss" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1985"
cx="64.220352"
cy="42.645832"
rx="2.501339"
ry="1.4507767" />
<ellipse
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64763337;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1987"
cx="64.320404"
cy="42.370686"
rx="0.95050877"
ry="0.92549545" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.87224609;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 58.317186,44.346745 c -0.48074,1.110566 -2.780721,3.873885 0.100053,3.501876"
id="path1991"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<g
id="g2020"
transform="matrix(0.7487091,0,0,0.7487091,22.654087,15.131824)">
<rect
y="60.764866"
x="34.11235"
height="4.7613068"
width="29.098907"
id="rect1993"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="70.426895"
x="31.608257"
height="5.3861618"
width="33.261906"
id="rect1993-3"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
inkscape:transform-center-y="-1.7953869"
inkscape:transform-center-x="4.2522321"
y="80.801094"
x="34.773071"
height="3.9466267"
width="27.487846"
id="rect1993-6"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.16499996;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<path
style="fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-width:1.24660063;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 42.10851,46.397844 11.91124,-6.273146 17.704613,-3.131888 -1.152956,-4.88569 -3.659617,-4.307194 -6.593533,-2.41333 -6.560565,1.23882 -6.046183,2.763322 -4.202251,12.206536 -5.602999,-3.001607 -1.400748,5.803105 5.002677,4.602464 z"
id="path1969"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Tool">
<g
id="g2112"
transform="rotate(39.624656,51.442591,37.959399)"
style="fill:#cccccc;stroke:#808080">
<rect
y="42.597912"
x="35.340771"
height="6.8035736"
width="28.442703"
id="rect2106"
style="fill:#cccccc;fill-opacity:1;stroke:#808080;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="38.81815"
x="54.52306"
height="14.2686"
width="17.103424"
id="rect2108"
style="fill:#cccccc;fill-opacity:1;stroke:#808080;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/pirate_with_shovel.svg-923e9589b9df5155880262d305572474.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/pirate_with_shovel.svg"
dest_files=[ "res://.import/pirate_with_shovel.svg-923e9589b9df5155880262d305572474.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

141
assets/treasure.svg Normal file
View File

@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="74.496933"
height="70.301506"
viewBox="0 0 19.710645 18.600606"
version="1.1"
id="svg2692"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="treasure.svg">
<defs
id="defs2686" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="-0.41554903"
inkscape:cy="43.465462"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
units="px" />
<metadata
id="metadata2689">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-27.626304,-117.94903)">
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 34.676423,128.71977 1.195111,-0.16396 3.593383,1.7116 -1.935728,2.77254 -3.361939,0.7875 -0.214497,-4.11707 z"
id="path3294-7-56"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 40.830254,128.93442 0.761042,0.93594 0.404623,3.95958 -3.374681,-0.21337 -2.419653,-2.46334 3.406264,-2.32242 z"
id="path3294-7-2"
inkscape:connector-curvature="0" />
<path
style="fill:#803300;fill-rule:evenodd;stroke:#552200;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 34.224028,130.84028 1.70677,-0.55267 4.421347,0.0488 2.06438,0.81275 -1.86932,1.49545 -4.600152,0.29259 z"
id="path3367"
inkscape:connector-curvature="0" />
<g
id="g4056"
transform="rotate(-7.1766619,96.541896,117.41993)">
<rect
y="115.62016"
x="29.274044"
height="9.5329189"
width="16.038643"
id="rect3407"
style="fill:#ff7f2a;fill-opacity:1;stroke:#552200;stroke-width:0.59499997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="111.94521"
x="28.071331"
height="7.0826426"
width="18.374781"
id="rect3409"
style="fill:#ffdd55;fill-opacity:1;stroke:#552200;stroke-width:0.59499997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="112.21248"
x="32.14719"
height="6.4144669"
width="0.40090266"
id="rect3411"
style="fill:#c87137;fill-opacity:1;stroke:#552200;stroke-width:0.59499997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="112.27929"
x="41.501625"
height="6.4144669"
width="0.40090266"
id="rect3411-9"
style="fill:#c87137;fill-opacity:1;stroke:#552200;stroke-width:0.59499997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="117.75078"
x="35.266018"
height="3.4076865"
width="3.7417734"
id="rect3428"
style="fill:#c8b7b7;fill-opacity:1;stroke:#241c1c;stroke-width:0.59499997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 33.76885,129.49117 -1.170293,0.29255 -2.698386,2.92586 2.828439,1.85309 3.41354,-0.52011 -1.332969,-3.90122 z"
id="path3294"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 42.511792,129.54021 1.170293,0.29256 2.698386,2.92586 -2.828438,1.85309 -3.413542,-0.52012 1.332972,-3.90121 z"
id="path3294-7"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 35.192072,136.23043 -1.022112,-0.64067 -1.659356,-3.61781 3.263332,-0.88581 3.084536,1.55191 -2.475842,3.29643 z"
id="path3294-7-5"
inkscape:connector-curvature="0" />
<path
style="fill:#c87137;fill-rule:evenodd;stroke:#000000;stroke-width:0.59500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 39.419466,136.02939 -1.022112,-0.64067 -1.659356,-3.6178 3.263332,-0.88582 3.084536,1.55192 -2.475842,3.29644 z"
id="path3294-7-5-3"
inkscape:connector-curvature="0" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 2"
transform="translate(-27.626304,-117.94903)" />
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/treasure.svg-4bfa43428d947d30919c959f060e57d8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/treasure.svg"
dest_files=[ "res://.import/treasure.svg-4bfa43428d947d30919c959f060e57d8.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

68
assets/water.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="69.029785mm"
height="69.029785mm"
viewBox="0 0 69.029785 69.029785"
version="1.1"
id="svg848"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="water.svg">
<defs
id="defs842" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="-294.69285"
inkscape:cy="-141.55001"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1916"
inkscape:window-height="1041"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0" />
<metadata
id="metadata845">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-25.810103,-42.351771)">
<rect
style="fill:#80b3ff;fill-opacity:1;stroke:#80b3ff;stroke-width:1.29645836;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1393"
width="67.73333"
height="67.73333"
x="26.458332"
y="43" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

34
assets/water.svg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/water.svg-da03a482c42144629df10051327cffaf.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/water.svg"
dest_files=[ "res://.import/water.svg-da03a482c42144629df10051327cffaf.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

7
default_env.tres Normal file
View File

@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[resource]
background_mode = 2
background_sky = SubResource( 1 )

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

34
icon.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

58
project.godot Normal file
View File

@ -0,0 +1,58 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=4
[application]
config/name="LilPirateTreasureHunt"
config/icon="res://icon.png"
[autoload]
Globals="*res://Globals.gd"
[global]
view=false
[input]
walk_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":85,"unicode":0,"echo":false,"script":null)
]
}
walk_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
]
}
walk_up={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":86,"unicode":0,"echo":false,"script":null)
]
}
walk_down={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":73,"unicode":0,"echo":false,"script":null)
]
}
interact={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
]
}
[physics]
common/enable_pause_aware_picking=true
[rendering]
environment/default_environment="res://default_env.tres"