You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://ProceduralGenerator.gd" type="Script" id=1]
|
|
[ext_resource path="res://meshes.meshlib" type="MeshLibrary" id=2]
|
|
[ext_resource path="res://Player.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="CapsuleMesh" id=1]
|
|
|
|
[node name="Spatial" type="Spatial"]
|
|
|
|
[node name="GridMap" type="GridMap" parent="."]
|
|
mesh_library = ExtResource( 2 )
|
|
cell_size = Vector3( 1, 1, 1 )
|
|
cell_octant_size = 512
|
|
cell_center_x = false
|
|
cell_center_y = false
|
|
cell_center_z = false
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_editor_clip_": 0
|
|
}
|
|
ChunkWidth = 64
|
|
ChunkHeight = 64
|
|
|
|
[node name="Player" type="Spatial" parent="GridMap"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, 0 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="GridMap/Player"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
|
|
mesh = SubResource( 1 )
|
|
|
|
[node name="Camera" type="Camera" parent="GridMap/Player"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 10, 0 )
|
|
|
|
[node name="MapUpdateTimer" type="Timer" parent="GridMap"]
|
|
wait_time = 0.1
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="GridMap/MapUpdateTimer" to="GridMap" method="_on_MapUpdateTimer_timeout"]
|
|
|