add lake tile

This commit is contained in:
leca 2024-06-04 13:12:27 +03:00
parent d6434ee401
commit a761e412cf
27 changed files with 216 additions and 46 deletions

View File

@ -11,7 +11,7 @@ Things and ideas I'd like to implement
- Empty ✔️ - Empty ✔️
- Plain ✔️ - Plain ✔️
- Forest ✔️ - Forest ✔️
- Lake - Lake ✔️
- Sea - Sea
- Desert - Desert
- Mountains - Mountains

View File

@ -1,6 +1,6 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://bltqm36w3bbsq"] [gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://bltqm36w3bbsq"]
[ext_resource type="Texture2D" uid="uid://bkbekh1kval7e" path="res://models/textures/tile-empty.png" id="1_iwmoe"] [ext_resource type="Texture2D" uid="uid://divxjqcr833s1" path="res://models/textures/tile-empty.png" id="1_iwmoe"]
[resource] [resource]
transparency = 1 transparency = 1

8
materials/lake_tile.tres Normal file
View File

@ -0,0 +1,8 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://bcegn4an08sfl"]
[ext_resource type="Texture2D" uid="uid://c7ylg8unih6f1" path="res://models/textures/tile-lake.png" id="1_exj7t"]
[resource]
resource_name = "Material"
cull_mode = 2
albedo_texture = ExtResource("1_exj7t")

View File

@ -1,6 +1,6 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://xxyp1mwtshbe"] [gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://xxyp1mwtshbe"]
[ext_resource type="Texture2D" uid="uid://d1tyjae355uni" path="res://models/textures/tile-plain.png" id="1_nijc4"] [ext_resource type="Texture2D" uid="uid://b57ce76321dr3" path="res://models/textures/tile-plain.png" id="1_nijc4"]
[resource] [resource]
resource_name = "Material" resource_name = "Material"

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://70goue40u1al"
path="res://.godot/imported/Untitled.png-a372666e74d4b8f44f5980380f664280.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://models/blend/textures/Untitled.png"
dest_files=["res://.godot/imported/Untitled.png-a372666e74d4b8f44f5980380f664280.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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dojb0ms2r7dax"
path="res://.godot/imported/tile-lake.blend-a7ce47fcf8e712bfc5e5ef9f122a29a6.scn"
[deps]
source_file="res://models/blend/tile-lake.blend"
dest_files=["res://.godot/imported/tile-lake.blend-a7ce47fcf8e712bfc5e5ef9f122a29a6.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
blender/nodes/visible=0
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
models/glb/tile-lake.glb Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://mrlshn7n3x5"
path="res://.godot/imported/tile-lake.glb-1d8932d6c8e41387b5a53bcd5f33968a.scn"
[deps]
source_file="res://models/glb/tile-lake.glb"
dest_files=["res://.godot/imported/tile-lake.glb-1d8932d6c8e41387b5a53bcd5f33968a.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 300 KiB

View File

@ -2,14 +2,14 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://bkbekh1kval7e" uid="uid://divxjqcr833s1"
path.s3tc="res://.godot/imported/tile-empty.png-3c5f533ecd8b67644cee26bb6e6d46a1.s3tc.ctex" path.s3tc="res://.godot/imported/tile-empty.png-3c5f533ecd8b67644cee26bb6e6d46a1.s3tc.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc"],
"vram_texture": true "vram_texture": true
} }
generator_parameters={ generator_parameters={
"md5": "932ab463af687ce89053c175a97dc539" "md5": "bcf89b8d37b2b78b9b9286bdad9bba03"
} }
[deps] [deps]

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c7ylg8unih6f1"
path.s3tc="res://.godot/imported/tile-lake.png-1986e7a34385f630a09c2ae148e14455.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "af556551ed56c895cd8ba0065b3ecb60"
}
[deps]
source_file="res://models/textures/tile-lake.png"
dest_files=["res://.godot/imported/tile-lake.png-1986e7a34385f630a09c2ae148e14455.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 KiB

After

Width:  |  Height:  |  Size: 590 KiB

View File

@ -2,14 +2,14 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://d1tyjae355uni" uid="uid://b57ce76321dr3"
path.s3tc="res://.godot/imported/tile-plain.png-513350c74b1a98ae2fd8a5aeb3f94dff.s3tc.ctex" path.s3tc="res://.godot/imported/tile-plain.png-513350c74b1a98ae2fd8a5aeb3f94dff.s3tc.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc"],
"vram_texture": true "vram_texture": true
} }
generator_parameters={ generator_parameters={
"md5": "29669f6c6d75b14327d9e4d0fbfc3828" "md5": "51640d264fa592c71d4af202772bdf70"
} }
[deps] [deps]

35
models/tile_mesh.tres Normal file
View File

@ -0,0 +1,35 @@
[gd_resource type="ArrayMesh" load_steps=3 format=3 uid="uid://0x1rbugxwfq8"]
[ext_resource type="Material" uid="uid://xxyp1mwtshbe" path="res://materials/plain_tile.tres" id="1_hgenx"]
[sub_resource type="ArrayMesh" id="ArrayMesh_w0w02"]
_surfaces = [{
"aabb": AABB(-1, -1, -1, 2.00001, 11, 2),
"format": 34896613377,
"index_count": 120,
"index_data": PackedByteArray(10, 0, 6, 0, 2, 0, 10, 0, 9, 0, 6, 0, 9, 0, 4, 0, 6, 0, 9, 0, 11, 0, 4, 0, 5, 0, 3, 0, 1, 0, 5, 0, 7, 0, 3, 0, 8, 0, 2, 0, 0, 0, 8, 0, 10, 0, 2, 0, 11, 0, 0, 0, 4, 0, 11, 0, 8, 0, 0, 0, 14, 0, 8, 0, 11, 0, 14, 0, 12, 0, 8, 0, 12, 0, 10, 0, 8, 0, 12, 0, 13, 0, 10, 0, 15, 0, 11, 0, 9, 0, 15, 0, 14, 0, 11, 0, 13, 0, 9, 0, 10, 0, 13, 0, 15, 0, 9, 0, 3, 0, 15, 0, 13, 0, 3, 0, 7, 0, 15, 0, 7, 0, 14, 0, 15, 0, 7, 0, 5, 0, 14, 0, 1, 0, 13, 0, 12, 0, 1, 0, 3, 0, 13, 0, 5, 0, 12, 0, 14, 0, 5, 0, 1, 0, 12, 0, 0, 0, 18, 0, 19, 0, 0, 0, 2, 0, 18, 0, 2, 0, 20, 0, 18, 0, 2, 0, 6, 0, 20, 0, 6, 0, 17, 0, 20, 0, 6, 0, 4, 0, 17, 0, 16, 0, 17, 0, 19, 0, 17, 0, 0, 0, 19, 0, 17, 0, 4, 0, 0, 0, 20, 0, 16, 0, 18, 0, 17, 0, 16, 0, 20, 0, 18, 0, 16, 0, 19, 0, 11, 0, 10, 0, 9, 0, 11, 0, 8, 0, 10, 0),
"name": "Material",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 21,
"vertex_data": PackedByteArray(254, 255, 254, 255, 0, 0, 0, 0, 254, 255, 0, 0, 0, 0, 0, 0, 254, 255, 254, 255, 255, 255, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 0, 0, 254, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 254, 255, 0, 230, 0, 0, 0, 0, 0, 0, 0, 230, 255, 255, 0, 0, 254, 255, 0, 230, 255, 255, 0, 0, 0, 0, 0, 230, 0, 0, 0, 0, 254, 255, 104, 145, 0, 0, 0, 0, 254, 255, 104, 145, 255, 255, 0, 0, 0, 0, 104, 145, 0, 0, 0, 0, 0, 0, 104, 145, 255, 255, 0, 0, 255, 127, 254, 255, 255, 127, 0, 0, 255, 63, 254, 255, 255, 63, 0, 0, 255, 191, 254, 255, 255, 191, 0, 0, 255, 191, 254, 255, 255, 63, 0, 0, 255, 63, 254, 255, 255, 191, 0, 0)
}]
blend_shape_mode = 0
[resource]
resource_name = "tile-lake_Cube"
_surfaces = [{
"aabb": AABB(-1, -1, -1, 2.00001, 11, 2),
"attribute_data": PackedByteArray(183, 199, 234, 250, 234, 250, 173, 158, 122, 107, 234, 250, 183, 199, 53, 25, 224, 209, 224, 209, 122, 107, 53, 25, 20, 5, 234, 250, 234, 250, 183, 199, 132, 148, 234, 250, 20, 5, 53, 25, 224, 209, 234, 250, 132, 148, 53, 25, 173, 158, 234, 250, 224, 209, 173, 158, 81, 97, 234, 250, 173, 158, 53, 25, 234, 250, 224, 209, 81, 97, 53, 25, 30, 46, 234, 250, 224, 209, 183, 199, 71, 56, 234, 250, 30, 46, 53, 25, 234, 250, 234, 250, 71, 56, 53, 25, 183, 199, 255, 227, 234, 250, 122, 107, 122, 107, 255, 227, 30, 46, 255, 227, 224, 209, 132, 148, 71, 56, 255, 227, 20, 5, 255, 227, 234, 250, 132, 148, 132, 148, 255, 227, 173, 158, 255, 227, 224, 209, 122, 107, 81, 97, 255, 227, 183, 199, 105, 153, 122, 107, 105, 153, 20, 5, 105, 153, 132, 148, 105, 153, 173, 158, 105, 153, 81, 97, 105, 153, 30, 46, 105, 153, 71, 56, 105, 153, 101, 230, 50, 179, 35, 220, 240, 168, 167, 240, 116, 189, 167, 240, 240, 168, 35, 220, 116, 189),
"format": 34896613399,
"index_count": 120,
"index_data": PackedByteArray(30, 0, 18, 0, 6, 0, 30, 0, 27, 0, 18, 0, 29, 0, 14, 0, 20, 0, 29, 0, 35, 0, 14, 0, 16, 0, 10, 0, 4, 0, 16, 0, 22, 0, 10, 0, 26, 0, 8, 0, 2, 0, 26, 0, 32, 0, 8, 0, 33, 0, 0, 0, 12, 0, 33, 0, 24, 0, 0, 0, 40, 0, 24, 0, 33, 0, 40, 0, 36, 0, 24, 0, 37, 0, 32, 0, 26, 0, 37, 0, 39, 0, 32, 0, 43, 0, 35, 0, 29, 0, 43, 0, 41, 0, 35, 0, 38, 0, 27, 0, 30, 0, 38, 0, 42, 0, 27, 0, 9, 0, 42, 0, 38, 0, 9, 0, 21, 0, 42, 0, 23, 0, 41, 0, 43, 0, 23, 0, 17, 0, 41, 0, 5, 0, 39, 0, 37, 0, 5, 0, 11, 0, 39, 0, 15, 0, 36, 0, 40, 0, 15, 0, 3, 0, 36, 0, 1, 0, 46, 0, 47, 0, 1, 0, 7, 0, 46, 0, 7, 0, 48, 0, 46, 0, 7, 0, 19, 0, 48, 0, 19, 0, 45, 0, 48, 0, 19, 0, 13, 0, 45, 0, 44, 0, 45, 0, 47, 0, 45, 0, 1, 0, 47, 0, 45, 0, 13, 0, 1, 0, 48, 0, 44, 0, 46, 0, 45, 0, 44, 0, 48, 0, 46, 0, 44, 0, 47, 0, 34, 0, 31, 0, 28, 0, 34, 0, 25, 0, 31, 0),
"material": ExtResource("1_hgenx"),
"name": "Material",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 49,
"vertex_data": PackedByteArray(254, 255, 254, 255, 0, 0, 255, 255, 254, 255, 254, 255, 0, 0, 255, 191, 254, 255, 254, 255, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 254, 255, 255, 255, 255, 255, 254, 255, 254, 255, 255, 255, 255, 191, 254, 255, 254, 255, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 254, 255, 0, 0, 255, 191, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 254, 255, 255, 255, 255, 255, 0, 0, 254, 255, 255, 255, 255, 191, 0, 0, 254, 255, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 254, 255, 0, 230, 0, 0, 255, 255, 254, 255, 0, 230, 0, 0, 255, 191, 254, 255, 0, 230, 0, 0, 255, 255, 0, 0, 0, 230, 255, 255, 255, 255, 0, 0, 0, 230, 255, 255, 255, 191, 0, 0, 0, 230, 255, 255, 255, 255, 254, 255, 0, 230, 255, 255, 255, 255, 254, 255, 0, 230, 255, 255, 255, 191, 254, 255, 0, 230, 255, 255, 255, 255, 0, 0, 0, 230, 0, 0, 255, 255, 0, 0, 0, 230, 0, 0, 255, 191, 0, 0, 0, 230, 0, 0, 255, 255, 254, 255, 104, 145, 0, 0, 255, 255, 254, 255, 104, 145, 0, 0, 255, 255, 254, 255, 104, 145, 255, 255, 255, 255, 254, 255, 104, 145, 255, 255, 255, 255, 0, 0, 104, 145, 0, 0, 255, 255, 0, 0, 104, 145, 0, 0, 255, 255, 0, 0, 104, 145, 255, 255, 255, 255, 0, 0, 104, 145, 255, 255, 255, 255, 255, 127, 254, 255, 255, 127, 255, 191, 255, 63, 254, 255, 255, 63, 255, 191, 255, 191, 254, 255, 255, 191, 255, 191, 255, 191, 254, 255, 255, 63, 255, 191, 255, 63, 254, 255, 255, 191, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 255, 255, 127, 255, 127, 255, 63, 255, 191, 255, 127, 255, 127, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 127, 255, 63, 255, 191, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 255, 127, 255, 63, 255, 63, 255, 127, 255, 127, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 127, 255, 63, 255, 63, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 191, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_w0w02")

View File

@ -1,39 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://bsacm2eokjlas"] [gd_scene load_steps=4 format=3 uid="uid://bsacm2eokjlas"]
[ext_resource type="Script" path="res://scripts/Tile.gd" id="1_s01tx"] [ext_resource type="Script" path="res://scripts/Tile.gd" id="1_s01tx"]
[ext_resource type="ArrayMesh" uid="uid://0x1rbugxwfq8" path="res://models/tile_mesh.tres" id="2_0bgqh"]
[sub_resource type="ArrayMesh" id="ArrayMesh_waern"]
_surfaces = [{
"aabb": AABB(-1, -1, -1, 2.00001, 11, 2),
"format": 34896613377,
"index_count": 114,
"index_data": PackedByteArray(10, 0, 6, 0, 2, 0, 10, 0, 9, 0, 6, 0, 9, 0, 4, 0, 6, 0, 9, 0, 11, 0, 4, 0, 5, 0, 3, 0, 1, 0, 5, 0, 7, 0, 3, 0, 8, 0, 2, 0, 0, 0, 8, 0, 10, 0, 2, 0, 11, 0, 0, 0, 4, 0, 11, 0, 8, 0, 0, 0, 14, 0, 8, 0, 11, 0, 14, 0, 12, 0, 8, 0, 12, 0, 10, 0, 8, 0, 12, 0, 13, 0, 10, 0, 15, 0, 11, 0, 9, 0, 15, 0, 14, 0, 11, 0, 13, 0, 9, 0, 10, 0, 13, 0, 15, 0, 9, 0, 3, 0, 15, 0, 13, 0, 3, 0, 7, 0, 15, 0, 7, 0, 14, 0, 15, 0, 7, 0, 5, 0, 14, 0, 1, 0, 13, 0, 12, 0, 1, 0, 3, 0, 13, 0, 5, 0, 12, 0, 14, 0, 5, 0, 1, 0, 12, 0, 0, 0, 18, 0, 19, 0, 0, 0, 2, 0, 18, 0, 2, 0, 20, 0, 18, 0, 2, 0, 6, 0, 20, 0, 6, 0, 17, 0, 20, 0, 6, 0, 4, 0, 17, 0, 16, 0, 17, 0, 19, 0, 17, 0, 0, 0, 19, 0, 17, 0, 4, 0, 0, 0, 20, 0, 16, 0, 18, 0, 17, 0, 16, 0, 20, 0, 18, 0, 16, 0, 19, 0),
"lods": [0.000534981, PackedByteArray(13, 0, 6, 0, 2, 0, 13, 0, 15, 0, 6, 0, 3, 0, 15, 0, 13, 0, 3, 0, 7, 0, 15, 0, 15, 0, 4, 0, 6, 0, 15, 0, 14, 0, 4, 0, 7, 0, 14, 0, 15, 0, 7, 0, 5, 0, 14, 0, 5, 0, 3, 0, 1, 0, 5, 0, 7, 0, 3, 0, 12, 0, 2, 0, 0, 0, 12, 0, 13, 0, 2, 0, 1, 0, 13, 0, 12, 0, 1, 0, 3, 0, 13, 0, 14, 0, 0, 0, 4, 0, 14, 0, 12, 0, 0, 0, 5, 0, 12, 0, 14, 0, 5, 0, 1, 0, 12, 0, 2, 0, 6, 0, 0, 0, 6, 0, 4, 0, 0, 0)],
"name": "Material",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 21,
"vertex_data": PackedByteArray(254, 255, 254, 255, 0, 0, 0, 0, 254, 255, 0, 0, 0, 0, 0, 0, 254, 255, 254, 255, 255, 255, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 0, 0, 254, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 254, 255, 0, 230, 0, 0, 0, 0, 0, 0, 0, 230, 255, 255, 0, 0, 254, 255, 0, 230, 255, 255, 0, 0, 0, 0, 0, 230, 0, 0, 0, 0, 254, 255, 104, 145, 0, 0, 0, 0, 254, 255, 104, 145, 255, 255, 0, 0, 0, 0, 104, 145, 0, 0, 0, 0, 0, 0, 104, 145, 255, 255, 0, 0, 255, 127, 254, 255, 255, 127, 0, 0, 255, 63, 254, 255, 255, 63, 0, 0, 255, 191, 254, 255, 255, 191, 0, 0, 255, 191, 254, 255, 255, 63, 0, 0, 255, 63, 254, 255, 255, 191, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_8ky3l"]
resource_name = "tile-empty_Cube"
_surfaces = [{
"aabb": AABB(-1, -1, -1, 2.00001, 11, 2),
"attribute_data": PackedByteArray(12, 200, 63, 251, 63, 251, 139, 209, 37, 107, 63, 251, 12, 200, 221, 21, 139, 209, 88, 158, 37, 107, 221, 21, 191, 4, 63, 251, 63, 251, 63, 251, 217, 148, 63, 251, 191, 4, 221, 21, 139, 209, 12, 200, 217, 148, 221, 21, 88, 158, 63, 251, 139, 209, 139, 209, 166, 97, 63, 251, 88, 158, 221, 21, 63, 251, 88, 158, 166, 97, 221, 21, 115, 46, 63, 251, 139, 209, 63, 251, 242, 55, 63, 251, 115, 46, 221, 21, 63, 251, 12, 200, 242, 55, 221, 21, 12, 200, 245, 227, 37, 107, 245, 227, 115, 46, 245, 227, 242, 55, 245, 227, 191, 4, 245, 227, 217, 148, 245, 227, 88, 158, 245, 227, 166, 97, 245, 227, 12, 200, 40, 152, 37, 107, 40, 152, 191, 4, 40, 152, 217, 148, 40, 152, 88, 158, 40, 152, 166, 97, 40, 152, 115, 46, 40, 152, 242, 55, 40, 152, 101, 230, 101, 230, 248, 219, 248, 219, 210, 240, 210, 240, 210, 240, 248, 219, 248, 219, 210, 240),
"format": 34896613399,
"index_count": 114,
"index_data": PackedByteArray(28, 0, 18, 0, 6, 0, 28, 0, 26, 0, 18, 0, 27, 0, 14, 0, 20, 0, 27, 0, 31, 0, 14, 0, 16, 0, 10, 0, 4, 0, 16, 0, 22, 0, 10, 0, 25, 0, 8, 0, 2, 0, 25, 0, 29, 0, 8, 0, 30, 0, 0, 0, 12, 0, 30, 0, 24, 0, 0, 0, 36, 0, 24, 0, 30, 0, 36, 0, 32, 0, 24, 0, 33, 0, 29, 0, 25, 0, 33, 0, 35, 0, 29, 0, 39, 0, 31, 0, 27, 0, 39, 0, 37, 0, 31, 0, 34, 0, 26, 0, 28, 0, 34, 0, 38, 0, 26, 0, 9, 0, 38, 0, 34, 0, 9, 0, 21, 0, 38, 0, 23, 0, 37, 0, 39, 0, 23, 0, 17, 0, 37, 0, 5, 0, 35, 0, 33, 0, 5, 0, 11, 0, 35, 0, 15, 0, 32, 0, 36, 0, 15, 0, 3, 0, 32, 0, 1, 0, 42, 0, 43, 0, 1, 0, 7, 0, 42, 0, 7, 0, 44, 0, 42, 0, 7, 0, 19, 0, 44, 0, 19, 0, 41, 0, 44, 0, 19, 0, 13, 0, 41, 0, 40, 0, 41, 0, 43, 0, 41, 0, 1, 0, 43, 0, 41, 0, 13, 0, 1, 0, 44, 0, 40, 0, 42, 0, 41, 0, 40, 0, 44, 0, 42, 0, 40, 0, 43, 0),
"lods": [0.000534981, PackedByteArray(34, 0, 18, 0, 6, 0, 34, 0, 38, 0, 18, 0, 9, 0, 38, 0, 34, 0, 9, 0, 21, 0, 38, 0, 39, 0, 14, 0, 20, 0, 39, 0, 37, 0, 14, 0, 23, 0, 37, 0, 39, 0, 23, 0, 17, 0, 37, 0, 16, 0, 10, 0, 4, 0, 16, 0, 22, 0, 10, 0, 33, 0, 8, 0, 2, 0, 33, 0, 35, 0, 8, 0, 5, 0, 35, 0, 33, 0, 5, 0, 11, 0, 35, 0, 36, 0, 0, 0, 12, 0, 36, 0, 32, 0, 0, 0, 15, 0, 32, 0, 36, 0, 15, 0, 3, 0, 32, 0, 7, 0, 19, 0, 1, 0, 19, 0, 13, 0, 1, 0)],
"name": "Material",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 45,
"vertex_data": PackedByteArray(254, 255, 254, 255, 0, 0, 255, 255, 254, 255, 254, 255, 0, 0, 255, 191, 254, 255, 254, 255, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 0, 0, 0, 0, 255, 255, 254, 255, 254, 255, 255, 255, 255, 255, 254, 255, 254, 255, 255, 255, 255, 191, 254, 255, 254, 255, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 254, 255, 0, 0, 255, 255, 255, 255, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 254, 255, 0, 0, 255, 191, 0, 0, 254, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 254, 255, 255, 255, 255, 255, 0, 0, 254, 255, 255, 255, 255, 191, 0, 0, 254, 255, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 254, 255, 0, 230, 0, 0, 255, 255, 254, 255, 0, 230, 0, 0, 255, 255, 0, 0, 0, 230, 255, 255, 255, 255, 0, 0, 0, 230, 255, 255, 255, 255, 254, 255, 0, 230, 255, 255, 255, 255, 254, 255, 0, 230, 255, 255, 255, 255, 0, 0, 0, 230, 0, 0, 255, 255, 0, 0, 0, 230, 0, 0, 255, 255, 254, 255, 104, 145, 0, 0, 255, 255, 254, 255, 104, 145, 0, 0, 255, 255, 254, 255, 104, 145, 255, 255, 255, 255, 254, 255, 104, 145, 255, 255, 255, 255, 0, 0, 104, 145, 0, 0, 255, 255, 0, 0, 104, 145, 0, 0, 255, 255, 0, 0, 104, 145, 255, 255, 255, 255, 0, 0, 104, 145, 255, 255, 255, 255, 255, 127, 254, 255, 255, 127, 255, 191, 255, 63, 254, 255, 255, 63, 255, 191, 255, 191, 254, 255, 255, 191, 255, 191, 255, 191, 254, 255, 255, 63, 255, 191, 255, 63, 254, 255, 255, 191, 255, 191, 254, 255, 255, 127, 254, 255, 255, 127, 255, 191, 255, 127, 255, 255, 255, 127, 255, 127, 255, 63, 255, 191, 255, 127, 255, 127, 255, 127, 254, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 127, 255, 63, 255, 191, 255, 127, 254, 255, 255, 127, 254, 255, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 255, 127, 255, 63, 255, 63, 255, 127, 255, 127, 255, 127, 254, 255, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 127, 255, 63, 255, 63, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 191, 255, 127, 254, 255, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 255, 191, 255, 127, 255, 127, 255, 127, 255, 191, 255, 127, 255, 255, 255, 127, 255, 63, 255, 127, 255, 127, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 254, 255, 255, 127, 254, 255, 255, 127, 254, 255, 255, 127, 254, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_waern")
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_p1luu"] [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_p1luu"]
points = PackedVector3Array(4.9999, -0.0589142, -5, 4.9999, -0.0589142, -5, 4.9999, -0.0589142, -5, 4.9999, -55.0581, -5, 4.9999, -55.0581, -5, 4.9999, -55.0581, -5, 4.9999, -0.0589142, 5, 4.9999, -0.0589142, 5, 4.9999, -0.0589142, 5, 4.9999, -55.0581, 5, 4.9999, -55.0581, 5, 4.9999, -55.0581, 5, -5, -0.0589142, -5, -5, -0.0589142, -5, -5, -0.0589142, -5, -5, -55.0581, -5, -5, -55.0581, -5, -5, -55.0581, -5, -5, -0.0589142, 5, -5, -0.0589142, 5, -5, -0.0589142, 5, -5, -55.0581, 5, -5, -55.0581, 5, -5, -55.0581, 5, 4.9999, -5.64326, -5, 4.9999, -5.64326, -5, -5, -5.64326, 5, -5, -5.64326, 5, 4.9999, -5.64326, 5, 4.9999, -5.64326, 5, -5, -5.64326, -5, -5, -5.64326, -5, 4.9999, -23.818, -5, 4.9999, -23.818, -5, 4.9999, -23.818, 5, 4.9999, -23.818, 5, -5, -23.818, -5, -5, -23.818, -5, -5, -23.818, 5, -5, -23.818, 5, -5.126e-05, -0.0589142, -7.62939e-05, -2.5001, -0.0589142, -2.50011, 2.5, -0.0589142, 2.49996, 2.5, -0.0589142, -2.50011, -2.5001, -0.0589142, 2.49996) points = PackedVector3Array(4.9999, -0.0589142, -5, 4.9999, -0.0589142, -5, 4.9999, -0.0589142, -5, 4.9999, -55.0581, -5, 4.9999, -55.0581, -5, 4.9999, -55.0581, -5, 4.9999, -0.0589142, 5, 4.9999, -0.0589142, 5, 4.9999, -0.0589142, 5, 4.9999, -55.0581, 5, 4.9999, -55.0581, 5, 4.9999, -55.0581, 5, -5, -0.0589142, -5, -5, -0.0589142, -5, -5, -0.0589142, -5, -5, -55.0581, -5, -5, -55.0581, -5, -5, -55.0581, -5, -5, -0.0589142, 5, -5, -0.0589142, 5, -5, -0.0589142, 5, -5, -55.0581, 5, -5, -55.0581, 5, -5, -55.0581, 5, 4.9999, -5.64326, -5, 4.9999, -5.64326, -5, -5, -5.64326, 5, -5, -5.64326, 5, 4.9999, -5.64326, 5, 4.9999, -5.64326, 5, -5, -5.64326, -5, -5, -5.64326, -5, 4.9999, -23.818, -5, 4.9999, -23.818, -5, 4.9999, -23.818, 5, 4.9999, -23.818, 5, -5, -23.818, -5, -5, -23.818, -5, -5, -23.818, 5, -5, -23.818, 5, -5.126e-05, -0.0589142, -7.62939e-05, -2.5001, -0.0589142, -2.50011, 2.5, -0.0589142, 2.49996, 2.5, -0.0589142, -2.50011, -2.5001, -0.0589142, 2.49996)
@ -44,7 +12,7 @@ script = ExtResource("1_s01tx")
[node name="VisibleMesh" type="MeshInstance3D" parent="."] [node name="VisibleMesh" type="MeshInstance3D" parent="."]
transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 5, 0, -50, 0) transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 5, 0, -50, 0)
mesh = SubResource("ArrayMesh_8ky3l") mesh = ExtResource("2_0bgqh")
skeleton = NodePath("") skeleton = NodePath("")
[node name="CollisionMesh" type="CollisionShape3D" parent="."] [node name="CollisionMesh" type="CollisionShape3D" parent="."]

View File

@ -15,7 +15,8 @@ var walk = 0.25
enum TileType { enum TileType {
Empty, Empty,
Plain, Plain,
Forest Forest,
Lake
} }
var creating_tile_type = TileType.Plain var creating_tile_type = TileType.Plain
@ -46,7 +47,7 @@ func _physics_process(delta):
var speed var speed
if Input.is_action_just_pressed("tile type loop"): if Input.is_action_just_pressed("tile type loop"):
creating_tile_type = wrap(creating_tile_type + 1, 0, 3) creating_tile_type = wrap(creating_tile_type + 1, 0, TileType.size())
tile_type_label.text = "Tile type: " + str(TileType.keys()[creating_tile_type]) tile_type_label.text = "Tile type: " + str(TileType.keys()[creating_tile_type])
if Input.is_action_just_pressed("LMC") and eye_raycast.is_colliding() and !get_node("UI/ingame_menu").visible: if Input.is_action_just_pressed("LMC") and eye_raycast.is_colliding() and !get_node("UI/ingame_menu").visible:

View File

@ -3,13 +3,15 @@ extends StaticBody3D
enum TileType { enum TileType {
Empty, Empty,
Plain, Plain,
Forest Forest,
Lake
} }
var tile_materials = [ # must be in the same order as an enum above! var tile_materials = [ # must be in the same order as an enum above!
preload("res://materials/empty_tile.tres"), # Empty preload("res://materials/empty_tile.tres"), # Empty
preload("res://materials/plain_tile.tres"), # Plain preload("res://materials/plain_tile.tres"), # Plain
preload("res://materials/plain_tile.tres") # Forest preload("res://materials/plain_tile.tres"), # Forest
preload("res://materials/lake_tile.tres") # Lake
] ]
@export var decorations = { @export var decorations = {
"Forest": { "Forest": {