feat: Make spawn trees adjust to chunk_size changes
This commit is contained in:
parent
9ae17c194e
commit
c3c3f73cfd
5
spawn.gd
5
spawn.gd
|
|
@ -3,3 +3,8 @@ extends Node3D
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
$Mesh.mesh.size.x = Global.chunk_size
|
$Mesh.mesh.size.x = Global.chunk_size
|
||||||
$Mesh.mesh.size.y = Global.chunk_size
|
$Mesh.mesh.size.y = Global.chunk_size
|
||||||
|
for tree in get_children():
|
||||||
|
if not tree.name.begins_with("Tree"):
|
||||||
|
continue
|
||||||
|
|
||||||
|
tree.position *= Global.chunk_size / 150
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue