Loads of crap
This commit is contained in:
parent
b5bf7619e6
commit
1dc768ad27
725 changed files with 15096 additions and 191 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=62 format=4 uid="uid://bwsugg4p50fjr"]
|
||||
[gd_scene load_steps=63 format=4 uid="uid://bwsugg4p50fjr"]
|
||||
|
||||
[ext_resource type="Environment" uid="uid://cm77bbr0io118" path="res://Stages/Test3D/new_environment.tres" id="1_8ph61"]
|
||||
[ext_resource type="Script" uid="uid://bwed2dwogfmxv" path="res://Entities/Player/scripts/player.gd" id="1_d602n"]
|
||||
|
|
@ -12,9 +12,9 @@
|
|||
[ext_resource type="ArrayMesh" uid="uid://r2imjo7o2734" path="res://Stages/Test3D/assets/stylizedGrassMeshes/grass2.res" id="8_xvexm"]
|
||||
[ext_resource type="PackedScene" uid="uid://nsnthin0ekva" path="res://Stages/Test3D/assets/rock-c.glb" id="9_rt72s"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbh8u0qkfjclt" path="res://Stages/Test3D/assets/signpost.glb" id="10_h3wmm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj6mb6x4kxdu6" path="res://Stages/Test3D/assets/tree-autumn.glb" id="11_0yf11"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwdibgbi3ycqn" path="res://Stages/Test3D/assets/tree-autumn-tall.glb" id="12_hvb1l"]
|
||||
[ext_resource type="PackedScene" uid="uid://6oq46yn8aol3" path="res://Stages/Test3D/assets/tree-log-small.glb" id="13_xvexm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj6mb6x4kxdu6" path="res://Entities/Tree/assets/tree-autumn.glb" id="11_0yf11"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwdibgbi3ycqn" path="res://Entities/Tree/assets/tree-autumn-tall.glb" id="12_hvb1l"]
|
||||
[ext_resource type="PackedScene" uid="uid://6oq46yn8aol3" path="res://Entities/Tree/assets/tree-log-small.glb" id="13_xvexm"]
|
||||
[ext_resource type="PackedScene" uid="uid://fr55x0udsaf6" path="res://Stages/Test3D/assets/tent.glb" id="14_ukp6m"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3xj1hdaapwuv" path="res://Stages/Test3D/assets/patch-grass-large.glb" id="16_5r2bu"]
|
||||
[ext_resource type="PackedScene" uid="uid://chd461v3ivhus" path="res://Stages/Test3D/assets/grass-large.glb" id="17_23r73"]
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bttu3yi1kc550" path="res://Stages/Test3D/assets/3d/particles/streak.png" id="23_23r73"]
|
||||
[ext_resource type="Script" uid="uid://bjfvgoshksbt6" path="res://Stages/Test3D/tile_map_test.gd" id="24_vyi1v"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwcevwwphdvq" path="res://Entities/GroundTile/GroundTile.tscn" id="25_caaui"]
|
||||
[ext_resource type="Script" uid="uid://dw2jmurt0iq5" path="res://Stages/UI/debug_ui.gd" id="27_1r6vk"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_0yf11"]
|
||||
script/source = "extends Node3D
|
||||
|
|
@ -820,6 +821,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.18018, 1.33948e-16, 0.2696
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.899231, 0.00213623, 0.359619)
|
||||
|
||||
[node name="VFX" type="Node3D" parent="SubViewportContainer/SubViewport"]
|
||||
visible = false
|
||||
|
||||
[node name="Fire" type="GPUParticles3D" parent="SubViewportContainer/SubViewport/VFX"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.08083, 0.0837402, 0.501403)
|
||||
|
|
@ -832,7 +834,7 @@ draw_pass_1 = SubResource("QuadMesh_hvb1l")
|
|||
[node name="OmniLight3D" type="OmniLight3D" parent="SubViewportContainer/SubViewport/VFX/Fire"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000509977, 0.121094, -0.00151992)
|
||||
light_color = Color(0.89, 0.461613, 0.2136, 1)
|
||||
light_energy = 0.763335
|
||||
light_energy = 0.927966
|
||||
light_indirect_energy = 1.084
|
||||
light_volumetric_fog_energy = 3.764
|
||||
light_size = 0.105
|
||||
|
|
@ -1005,3 +1007,51 @@ ground_tile = ExtResource("25_caaui")
|
|||
|
||||
[node name="tent-canvas2" parent="." instance=ExtResource("23_5r2bu")]
|
||||
transform = Transform3D(0.964438, 0, -0.264311, 0, 1, 0, 0.264311, 0, 0.964438, 1.49756, 1.86265e-09, -3.10828)
|
||||
visible = false
|
||||
|
||||
[node name="UISubViewportContainer" type="SubViewportContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
stretch = true
|
||||
|
||||
[node name="UISubViewport" type="SubViewport" parent="UISubViewportContainer"]
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
size = Vector2i(1152, 648)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="UIContainer" type="Control" parent="UISubViewportContainer/UISubViewport"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("27_1r6vk")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="UISubViewportContainer/UISubViewport/UIContainer"]
|
||||
layout_mode = 0
|
||||
offset_right = 190.0
|
||||
offset_bottom = 211.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="UISubViewportContainer/UISubViewport/UIContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MapSizeLabel" type="RichTextLabel" parent="UISubViewportContainer/UISubViewport/UIContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
fit_content = true
|
||||
|
||||
[node name="CellCountLabel" type="RichTextLabel" parent="UISubViewportContainer/UISubViewport/UIContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
fit_content = true
|
||||
|
||||
[node name="LoadedCellsLabel" type="RichTextLabel" parent="UISubViewportContainer/UISubViewport/UIContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
fit_content = true
|
||||
|
||||
[node name="LoadedTreesLabel" type="RichTextLabel" parent="UISubViewportContainer/UISubViewport/UIContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
fit_content = true
|
||||
|
|
|
|||
1073
stages/Test3D/Test3d.tscn11611443197.tmp
Normal file
1073
stages/Test3D/Test3d.tscn11611443197.tmp
Normal file
File diff suppressed because one or more lines are too long
1073
stages/Test3D/Test3d.tscn11643958073.tmp
Normal file
1073
stages/Test3D/Test3d.tscn11643958073.tmp
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
BIN
stages/Test3D/assets/Textures/colormap.png
(Stored with Git LFS)
BIN
stages/Test3D/assets/Textures/colormap.png
(Stored with Git LFS)
Binary file not shown.
|
|
@ -1,35 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://v50x7hoiyguq"
|
||||
path.s3tc="res://.godot/imported/colormap.png-0fe28d887b14d5cf0f471c9f3fb42594.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/Textures/colormap.png"
|
||||
dest_files=["res://.godot/imported/colormap.png-0fe28d887b14d5cf0f471c9f3fb42594.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
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://m2m6dc4so845"
|
||||
path.s3tc="res://.godot/imported/colormap.png-6d658b554c420448394e4d9ad962a5e1.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://stages/test3d/assets/Textures/colormap.png"
|
||||
dest_files=["res://.godot/imported/colormap.png-6d658b554c420448394e4d9ad962a5e1.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.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bwdibgbi3ycqn"
|
||||
path="res://.godot/imported/tree-autumn-tall.glb-cee9a7664032f0555466d633b471d775.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-autumn-tall.glb"
|
||||
dest_files=["res://.godot/imported/tree-autumn-tall.glb-cee9a7664032f0555466d633b471d775.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cubcoj6j1eqvs"
|
||||
path="res://.godot/imported/tree-autumn-trunk.glb-205576dff6abe4f3e91979645067488b.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-autumn-trunk.glb"
|
||||
dest_files=["res://.godot/imported/tree-autumn-trunk.glb-205576dff6abe4f3e91979645067488b.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bj6mb6x4kxdu6"
|
||||
path="res://.godot/imported/tree-autumn.glb-6cbd6cc6dd21dd37a885453ba44b298f.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-autumn.glb"
|
||||
dest_files=["res://.godot/imported/tree-autumn.glb-6cbd6cc6dd21dd37a885453ba44b298f.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://6oq46yn8aol3"
|
||||
path="res://.godot/imported/tree-log-small.glb-6fc10667728efd355fa135489597657a.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-log-small.glb"
|
||||
dest_files=["res://.godot/imported/tree-log-small.glb-6fc10667728efd355fa135489597657a.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bqe8a75kfmy3l"
|
||||
path="res://.godot/imported/tree-log.glb-2611ce45094fd9dba1fd1d92331b377e.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-log.glb"
|
||||
dest_files=["res://.godot/imported/tree-log.glb-2611ce45094fd9dba1fd1d92331b377e.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://dgvycnw8hpebx"
|
||||
path="res://.godot/imported/tree-tall.glb-33bf2360739899f9b8c7ccfa00416490.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-tall.glb"
|
||||
dest_files=["res://.godot/imported/tree-tall.glb-33bf2360739899f9b8c7ccfa00416490.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cccqxa0y0ksju"
|
||||
path="res://.godot/imported/tree-trunk.glb-839b4a02304c1a6709bbf9b053df4b25.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree-trunk.glb"
|
||||
dest_files=["res://.godot/imported/tree-trunk.glb-839b4a02304c1a6709bbf9b053df4b25.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
|
|
@ -1,37 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cwfp2cf8no8fi"
|
||||
path="res://.godot/imported/tree.glb-99166369bc57108c6fa69bce9c238d89.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Stages/Test3D/assets/tree.glb"
|
||||
dest_files=["res://.godot/imported/tree.glb-99166369bc57108c6fa69bce9c238d89.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
class_name TileGround
|
||||
extends Node3D
|
||||
@export var ground_tile: PackedScene
|
||||
@export var map_width: int = 500
|
||||
@export var map_height: int = 500
|
||||
@export var map_width: int = Global.map_width
|
||||
@export var map_height: int = Global.map_height
|
||||
@export var tile_size: float = 2.0
|
||||
@export var chunk_size: int = 5
|
||||
@export var view_distance: int = 2
|
||||
|
|
@ -67,10 +68,12 @@ func update_chunks(player_pos: Vector3) -> void:
|
|||
|
||||
func load_chunk_async(chunk_pos: Vector2i) -> void:
|
||||
if not ground_tile:
|
||||
Log.pr("ground_tile is null!")
|
||||
loading_chunks.erase(chunk_pos)
|
||||
return
|
||||
|
||||
Log.pr("ground_tile is null!")
|
||||
loading_chunks.erase(chunk_pos)
|
||||
return
|
||||
|
||||
var orphans_before = Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT)
|
||||
|
||||
var chunk_node = Node3D.new()
|
||||
chunk_node.name = "Chunk_%d_%d" % [chunk_pos.x, chunk_pos.y]
|
||||
add_child(chunk_node)
|
||||
|
|
@ -91,6 +94,7 @@ func load_chunk_async(chunk_pos: Vector2i) -> void:
|
|||
start_z + (z * tile_size)
|
||||
)
|
||||
chunk_node.add_child(tile_instance)
|
||||
|
||||
tiles_created += 1
|
||||
tiles_this_frame += 1
|
||||
|
||||
|
|
@ -103,8 +107,30 @@ func load_chunk_async(chunk_pos: Vector2i) -> void:
|
|||
loaded_chunks[chunk_pos] = chunk_node
|
||||
loading_chunks.erase(chunk_pos)
|
||||
|
||||
var orphans_after = Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT)
|
||||
Log.pr("Orphans during chunk load: ", orphans_after - orphans_before)
|
||||
|
||||
# In your TileGround script, add this debugging to unload_chunk():
|
||||
func unload_chunk(chunk_pos: Vector2i) -> void:
|
||||
if chunk_pos in loaded_chunks:
|
||||
Log.pr("Unloading chunk: ", chunk_pos)
|
||||
loaded_chunks[chunk_pos].queue_free()
|
||||
loaded_chunks.erase(chunk_pos)
|
||||
Log.pr("Unloading chunk: ", chunk_pos)
|
||||
|
||||
var chunk_node = loaded_chunks[chunk_pos]
|
||||
var orphans_before = Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT)
|
||||
var nodes_before = Performance.get_monitor(Performance.OBJECT_NODE_COUNT)
|
||||
|
||||
# Count children before cleanup
|
||||
var child_count = chunk_node.get_child_count()
|
||||
Log.pr("Chunk has ", child_count, " children")
|
||||
|
||||
chunk_node.queue_free()
|
||||
loaded_chunks.erase(chunk_pos)
|
||||
|
||||
# Check immediately after
|
||||
await get_tree().process_frame
|
||||
|
||||
var orphans_after = Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT)
|
||||
var nodes_after = Performance.get_monitor(Performance.OBJECT_NODE_COUNT)
|
||||
|
||||
Log.pr("Orphans created: ", orphans_after - orphans_before)
|
||||
Log.pr("Nodes remaining: ", nodes_after - nodes_before)
|
||||
Loading…
Add table
Add a link
Reference in a new issue