Basic game

This commit is contained in:
2023-10-07 17:43:33 -07:00
parent c8db89d0cf
commit 9b1ba976d0
16 changed files with 1008 additions and 0 deletions

View File

@ -0,0 +1,46 @@
extends CharacterBody2D
var speed = 150
var accel = 10
var immobile = false
var inventory = {
"stone": 0,
"wood": 0,
"food": 0
}
var status = {
"health": 100,
"stamina": 100
}
func _physics_process(delta):
var pre_velocity = Vector2(0, 0)
if !immobile:
pre_velocity = Input.get_vector("move_left", "move_right", "move_up", "move_down")
velocity = lerp(velocity, pre_velocity * speed, accel*delta)
move_and_slide()
func _process(delta):
if Input.is_action_pressed("game_interact"):
if !$animation.is_playing():
$animation.play("hit")
if $body_pivot/raycast.is_colliding():
var hit_object = $body_pivot/raycast.get_collider()
if hit_object.type == "resource":
inventory[hit_object.resource_type] += 1
#update inventory HUD
$hud/inventory/stone_label.text = str(inventory.stone)
$hud/inventory/wood_label.text = str(inventory.wood)
#update status HUD
$hud/bars/health.value = int(lerp($hud/bars/health.value, float(status.health), 20*delta))
$hud/bars/stamina.value = int(lerp($hud/bars/stamina.value, float(status.stamina), 20*delta))
func _input(event):
if event is InputEventMouseMotion:
var mouse_pos = get_global_mouse_position()
$body_pivot.rotation = atan2((mouse_pos.y-position.y), (mouse_pos.x-position.x)) + (PI * 0.5)

View File

@ -0,0 +1,175 @@
[gd_scene load_steps=12 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="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://i7fjjduk8b0c" path="res://textures/world/biome/forest/tree.svg" id="5_j15j3"]
[sub_resource type="CircleShape2D" id="CircleShape2D_653al"]
radius = 36.0
[sub_resource type="Animation" id="Animation_gkjmi"]
resource_name = "hit"
length = 0.6
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("body_pivot/body:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 0.5),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, 1.13446, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_se06j"]
_data = {
"hit": SubResource("Animation_gkjmi")
}
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5s1x0"]
bg_color = Color(0.184314, 0.184314, 0.184314, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_csph4"]
bg_color = Color(1, 0, 0, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_31scb"]
bg_color = Color(0, 1, 0, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[node name="character" type="CharacterBody2D"]
script = ExtResource("1_qlitf")
[node name="camera" type="Camera2D" parent="."]
[node name="collision" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("CircleShape2D_653al")
[node name="animation" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_se06j")
}
[node name="body_pivot" type="Node2D" parent="."]
[node name="raycast" type="RayCast2D" parent="body_pivot"]
target_position = Vector2(0, -100)
[node name="body" type="Sprite2D" parent="body_pivot"]
scale = Vector2(0.2, 0.2)
texture = ExtResource("1_f7cgp")
[node name="hud" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = -432.0
offset_top = -256.0
offset_right = 464.0
offset_bottom = 272.0
script = ExtResource("3_eogh2")
[node name="bars" type="Panel" parent="hud"]
layout_mode = 1
offset_right = 368.0
offset_bottom = 56.0
[node name="health" type="ProgressBar" parent="hud/bars"]
layout_mode = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 360.0
offset_bottom = 16.0
theme_override_styles/background = SubResource("StyleBoxFlat_5s1x0")
theme_override_styles/fill = SubResource("StyleBoxFlat_csph4")
value = 100.0
show_percentage = false
[node name="stamina" type="ProgressBar" parent="hud/bars"]
layout_mode = 0
offset_left = 8.0
offset_top = 40.0
offset_right = 360.0
offset_bottom = 48.0
theme_override_styles/background = SubResource("StyleBoxFlat_5s1x0")
theme_override_styles/fill = SubResource("StyleBoxFlat_31scb")
value = 100.0
show_percentage = false
[node name="name" type="Panel" parent="hud"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -104.0
offset_bottom = 32.0
grow_horizontal = 0
[node name="username" type="Label" parent="hud/name"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Username"
horizontal_alignment = 1
vertical_alignment = 1
[node name="inventory" type="Panel" parent="hud"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -96.0
offset_top = -88.0
grow_horizontal = 0
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")
[node name="stone_label" type="Label" parent="hud/inventory"]
layout_mode = 0
offset_left = 48.0
offset_top = 8.0
offset_right = 88.0
offset_bottom = 40.0
text = "0"
horizontal_alignment = 2
vertical_alignment = 1
clip_text = true
[node name="wood_image" type="Sprite2D" parent="hud/inventory"]
position = Vector2(24, 64)
scale = Vector2(0.0457143, 0.0457143)
texture = ExtResource("5_j15j3")
[node name="wood_label" type="Label" parent="hud/inventory"]
layout_mode = 0
offset_left = 48.0
offset_top = 48.0
offset_right = 88.0
offset_bottom = 80.0
text = "0"
horizontal_alignment = 2
vertical_alignment = 1
clip_text = true

16
data/character/hud.gd Normal file
View File

@ -0,0 +1,16 @@
extends Control
var padding = 30
func resize():
var viewport_size = get_viewport().size
position.x = (-(viewport_size[0]/2))+padding
position.y = (-(viewport_size[1]/2))+padding
size.x = (viewport_size[0])-padding*2 #I don't know why padding needs to be doubled
size.y = (viewport_size[1])-padding*2
func _ready():
resize()
get_tree().get_root().size_changed.connect(resize)

25
data/objects/stone.tscn Normal file
View File

@ -0,0 +1,25 @@
[gd_scene load_steps=4 format=3 uid="uid://ikvaekbnft70"]
[ext_resource type="Texture2D" uid="uid://ttb1b3k07qu5" path="res://textures/world/biome/forest/boulder.svg" id="1_474a4"]
[sub_resource type="GDScript" id="GDScript_d7f4g"]
script/source = "extends StaticBody2D
var type = \"resource\"
var resource_type = \"stone\"
"
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
radius = 64.0
[node name="stone" type="StaticBody2D"]
script = SubResource("GDScript_d7f4g")
[node name="collision" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("CircleShape2D_fb1fv")
[node name="body" type="Sprite2D" parent="."]
scale = Vector2(0.2, 0.2)
texture = ExtResource("1_474a4")

24
data/objects/tree.tscn Normal file
View File

@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=3 uid="uid://c7ir6imnqx4py"]
[ext_resource type="Texture2D" uid="uid://i7fjjduk8b0c" path="res://textures/world/biome/forest/tree.svg" id="1_nvko3"]
[sub_resource type="GDScript" id="GDScript_d7f4g"]
script/source = "extends StaticBody2D
var type = \"resource\"
var resource_type = \"wood\"
"
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
radius = 32.0
[node name="tree" type="StaticBody2D"]
script = SubResource("GDScript_d7f4g")
[node name="collision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_fb1fv")
[node name="body" type="Sprite2D" parent="."]
scale = Vector2(0.2, 0.2)
texture = ExtResource("1_nvko3")

37
export_presets.cfg Normal file
View File

@ -0,0 +1,37 @@
[preset.0]
name="Web"
platform="Web"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)

View File

@ -11,10 +11,44 @@ config_version=5
[application]
config/name="Runic"
run/main_scene="res://scenes/world.tscn"
config/features=PackedStringArray("4.1", "GL Compatibility")
config/icon="res://icon.svg"
[display]
window/stretch/aspect="expand"
[input]
move_left={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null)
]
}
move_right={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null)
]
}
move_up={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null)
]
}
move_down={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null)
]
}
game_interact={
"deadzone": 0.5,
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(220, 23),"global_position":Vector2(224, 66),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null)
]
}
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
environment/defaults/default_clear_color=Color(0, 0, 0, 1)

56
scenes/world.tscn Normal file
View File

@ -0,0 +1,56 @@
[gd_scene load_steps=9 format=3 uid="uid://deus4t8mmx6pp"]
[ext_resource type="PackedScene" uid="uid://4dsm0l7s6vki" path="res://data/character/character.tscn" id="1_gadv2"]
[ext_resource type="Texture2D" uid="uid://vyhureoc5qlp" path="res://textures/world/biome/forest/grass.svg" id="2_xtc31"]
[ext_resource type="PackedScene" uid="uid://ikvaekbnft70" path="res://data/objects/stone.tscn" id="3_l3ue5"]
[ext_resource type="PackedScene" uid="uid://c7ir6imnqx4py" path="res://data/objects/tree.tscn" id="4_qpvcg"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_0fcbb"]
normal = Vector2(0, 1)
distance = -2000.0
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_cl8ds"]
normal = Vector2(-1, 0)
distance = -2000.0
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_5jryn"]
distance = -2000.0
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_j3vu4"]
normal = Vector2(1, 0)
distance = -2000.0
[node name="world" type="Node2D"]
[node name="character" parent="." instance=ExtResource("1_gadv2")]
[node name="biomes" type="Node2D" parent="."]
z_index = -10
[node name="grass" type="Sprite2D" parent="biomes"]
texture_repeat = 2
texture = ExtResource("2_xtc31")
region_enabled = true
region_rect = Rect2(0, 0, 4000, 4000)
[node name="objects" type="Node2D" parent="."]
[node name="stone" parent="objects" instance=ExtResource("3_l3ue5")]
position = Vector2(-128, -64)
[node name="tree" parent="objects" instance=ExtResource("4_qpvcg")]
position = Vector2(168, -152)
[node name="world_boundaries" type="StaticBody2D" parent="."]
[node name="north" type="CollisionShape2D" parent="world_boundaries"]
shape = SubResource("WorldBoundaryShape2D_0fcbb")
[node name="east" type="CollisionShape2D" parent="world_boundaries"]
shape = SubResource("WorldBoundaryShape2D_cl8ds")
[node name="south" type="CollisionShape2D" parent="world_boundaries"]
shape = SubResource("WorldBoundaryShape2D_5jryn")
[node name="west" type="CollisionShape2D" parent="world_boundaries"]
shape = SubResource("WorldBoundaryShape2D_j3vu4")

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg8"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="character.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.84297153"
inkscape:cx="291.25235"
inkscape:cy="247.00935"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="true"
units="px"
inkscape:snap-bbox="true"
inkscape:window-width="1333"
inkscape:window-height="808"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid10"
dotted="true" />
</sodipodi:namedview>
<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">
<circle
style="fill:#06ff00;stroke:#00e600;stroke-width:5.29167;stroke-miterlimit:4;stroke-dasharray:none;fill-opacity:1;stroke-opacity:1"
id="circle843"
cx="108.47916"
cy="34.395836"
r="18.520834" />
<circle
style="fill:#00ff00;stroke:#00e600;stroke-width:5.29167;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;fill-opacity:1"
id="path841"
cx="23.8125"
cy="34.395836"
r="18.520834" />
<circle
style="fill:#00ff00;stroke:#00e600;stroke-width:5.2916666;stroke-miterlimit:4;stroke-dasharray:none;fill-opacity:1;stroke-opacity:1"
id="path14"
cx="66.145836"
cy="66.145836"
r="44.979168" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://gfxfxkfu8uk4"
path="res://.godot/imported/character.svg-b4037f0ca3de55c3550ddff36f5eaaa9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/character/character.svg"
dest_files=["res://.godot/imported/character.svg-b4037f0ca3de55c3550ddff36f5eaaa9.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

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="700"
height="700"
viewBox="0 0 185.20833 185.20834"
version="1.1"
id="svg8"
sodipodi:docname="boulder.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7804479"
inkscape:cx="352.27977"
inkscape:cy="352.82204"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
units="px"
inkscape:window-width="1500"
inkscape:window-height="920"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid10"
dotted="true" />
</sodipodi:namedview>
<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 />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
sodipodi:type="star"
style="fill:#8b8b91;fill-opacity:1;stroke:#6d6d72;stroke-width:2.64583336;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path12"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="90.084419"
sodipodi:r2="72.561577"
sodipodi:arg1="-0.22731924"
sodipodi:arg2="0.086840028"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 180.37108,72.30215 -4.82877,55.46544 -36.50832,42.0342 L 84.79106,182.34912 33.532465,160.61693 4.8372522,112.90618 9.6660164,57.440742 46.174334,15.406538 100.41727,2.8592033 151.67586,24.591393 Z"
inkscape:transform-center-x="-1.3882968e-06"
inkscape:transform-center-y="1.262088e-06" />
<path
sodipodi:type="star"
style="fill:#afafb8;fill-opacity:1;stroke-width:0.096411;stroke-linecap:round"
id="path12-3"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="67.987129"
sodipodi:r2="53.87093"
sodipodi:arg1="-0.22243095"
sodipodi:arg2="0.091728315"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
inkscape:transform-center-x="1.4068344e-06"
d="m 158.91637,77.606113 -3.84887,41.841707 -27.70774,31.58834 -40.983199,9.26931 -38.604462,-16.59029 -21.480137,-36.11296 3.84887,-41.841712 27.70774,-31.588343 40.983195,-9.269306 38.604463,16.590292 z"
transform="matrix(0.87102117,0.28747162,-0.28747162,0.87102117,38.565043,-14.677095)"
inkscape:transform-center-y="-2.8935958e-06" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ttb1b3k07qu5"
path="res://.godot/imported/boulder.svg-886660507ab097f22361cd4de8f7af63.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/world/biome/forest/boulder.svg"
dest_files=["res://.godot/imported/boulder.svg-886660507ab097f22361cd4de8f7af63.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

View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="200"
height="200"
viewBox="0 0 52.916664 52.916668"
version="1.1"
id="svg8"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="grass.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.4344304"
inkscape:cx="155.83664"
inkscape:cy="110.68719"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="true"
units="px"
inkscape:snap-bbox="true"
inkscape:window-width="1500"
inkscape:window-height="920"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:object-nodes="true">
<inkscape:grid
type="xygrid"
id="grid115"
dotted="true" />
</sodipodi:namedview>
<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">
<path
id="rect1172"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0,0 H 13.229167 V 13.229167 H 0 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-4"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 13.229167,0 H 26.458333 V 13.229167 H 13.229167 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-7"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 26.458333,0 H 39.687501 V 13.229167 H 26.458333 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-6"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 39.687501,1.025641e-7 H 52.916666 V 13.229167 H 39.687501 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-5"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0,13.229167 H 13.229167 V 26.458333 H 0 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-69"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 13.229167,13.229167 H 26.458333 V 26.458333 H 13.229167 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-3"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 26.458333,13.229167 H 39.687501 V 26.458333 H 26.458333 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-74"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 39.687501,13.229167 H 52.916666 V 26.458333 H 39.687501 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-52"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0,26.458333 H 13.229167 V 39.687501 H 0 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-54"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 13.229167,26.458334 H 26.458333 V 39.687501 H 13.229167 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-744"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 26.458333,26.458335 H 39.687497 V 39.687501 H 26.458333 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-30"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 39.687501,26.458333 H 52.916666 V 39.687497 H 39.687501 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-78"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 1.025641e-7,39.687501 H 13.229167 V 52.916666 H 1.025641e-7 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-68"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 13.229167,39.687501 H 26.458333 V 52.916666 H 13.229167 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-8"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 26.458333,39.687501 H 39.687497 V 52.916666 H 26.458333 Z"
sodipodi:nodetypes="ccccc" />
<path
id="rect1172-43"
style="fill:#00cb00;fill-opacity:1;stroke:#00b300;stroke-width:0.912355;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 39.687497,39.687501 H 52.916663 V 52.916666 H 39.687497 Z"
sodipodi:nodetypes="ccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://vyhureoc5qlp"
path="res://.godot/imported/grass.svg-c7937a61141e85218fe957f9825e2602.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/world/biome/forest/grass.svg"
dest_files=["res://.godot/imported/grass.svg-c7937a61141e85218fe957f9825e2602.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

View File

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="700"
height="700"
viewBox="0 0 185.20833 185.20834"
version="1.1"
id="svg8"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="tree.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.85934584"
inkscape:cx="325.97068"
inkscape:cy="348.60629"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
units="px"
inkscape:window-width="1500"
inkscape:window-height="920"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid10"
dotted="true" />
</sodipodi:namedview>
<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 />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
sodipodi:type="star"
style="fill:#0fa92b;fill-opacity:1;stroke:#278232;stroke-width:2.64583336;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path12"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="90.903796"
sodipodi:r2="73.227371"
sodipodi:arg1="-0.22243095"
sodipodi:arg2="0.091728315"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 181.26846,72.550666 -15.74478,26.761106 10.59855,29.184338 -28.46757,12.39564 -8.57971,29.8403 -30.31673,-6.70454 L 84.277401,183.12579 63.69148,159.88198 32.660395,160.94335 29.668403,130.03861 3.9398711,112.65766 19.684648,85.896556 9.0860939,56.712221 37.553669,44.316579 46.133381,14.476282 76.450108,21.180818 100.93093,2.0825388 l 20.58592,23.2438092 31.03108,-1.061368 2.992,30.904736 z"
inkscape:transform-center-x="-1.4142858e-06"
inkscape:transform-center-y="1.2857144e-06" />
<path
sodipodi:type="star"
style="fill:#13c215;fill-opacity:1;stroke-width:0.096411;stroke-linecap:round"
id="path12-3"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="67.987129"
sodipodi:r2="53.87093"
sodipodi:arg1="-0.22243095"
sodipodi:arg2="0.091728315"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
inkscape:transform-center-x="-1.3708903e-06"
d="m 158.91637,77.606113 -12.66775,19.932614 8.81888,21.909093 -21.96453,8.67991 -5.74321,22.90843 -22.8716,-5.88823 -18.111599,15.15754 -15.042492,-18.20726 -23.56197,1.61697 -1.467671,-23.57174 -20.012466,-12.54122 12.667751,-19.932619 -8.818881,-21.909093 21.964523,-8.679906 5.743217,-22.908437 22.871593,5.88823 18.111602,-15.157536 15.042493,18.207264 23.56197,-1.616972 1.46767,23.571741 z"
transform="rotate(10.859702,92.604163,92.604164)" />
<path
sodipodi:type="star"
style="fill:#13c215;fill-opacity:1;stroke-width:0.096411;stroke-linecap:round"
id="path977"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="67.987129"
sodipodi:r2="53.87093"
sodipodi:arg1="-0.22243095"
sodipodi:arg2="0.091728315"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
inkscape:transform-center-x="-1.3708903e-06"
d="m 158.91637,77.606113 -12.66775,19.932614 8.81888,21.909093 -21.96453,8.67991 -5.74321,22.90843 -22.8716,-5.88823 -18.111599,15.15754 -15.042492,-18.20726 -23.56197,1.61697 -1.467671,-23.57174 -20.012466,-12.54122 12.667751,-19.932619 -8.818881,-21.909093 21.964523,-8.679906 5.743217,-22.908437 22.871593,5.88823 18.111602,-15.157536 15.042493,18.207264 23.56197,-1.616972 1.46767,23.571741 z"
transform="rotate(10.859702,92.604163,92.604164)" />
<path
sodipodi:type="star"
style="fill:#16e619;fill-opacity:1;stroke-width:0.096411;stroke-linecap:round"
id="path977-3"
sodipodi:sides="10"
sodipodi:cx="92.604164"
sodipodi:cy="92.604164"
sodipodi:r1="67.987129"
sodipodi:r2="53.87093"
sodipodi:arg1="-0.22243095"
sodipodi:arg2="0.091728315"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
transform="matrix(0.46341927,0.3991194,-0.3991194,0.46341927,86.649731,12.729495)"
d="m 158.91637,77.606113 -12.66775,19.932614 8.81888,21.909093 -21.96453,8.67991 -5.74321,22.90843 -22.8716,-5.88823 -18.111599,15.15754 -15.042492,-18.20726 -23.56197,1.61697 -1.467671,-23.57174 -20.012466,-12.54122 12.667751,-19.932619 -8.818881,-21.909093 21.964523,-8.679906 5.743217,-22.908437 22.871593,5.88823 18.111602,-15.157536 15.042493,18.207264 23.56197,-1.616972 1.46767,23.571741 z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://i7fjjduk8b0c"
path="res://.godot/imported/tree.svg-4d363f8900783b86fcadd9ed98eb0075.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/world/biome/forest/tree.svg"
dest_files=["res://.godot/imported/tree.svg-4d363f8900783b86fcadd9ed98eb0075.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