generated from krampus/template-godot4
Removed debug text
This commit is contained in:
parent
e32dc050ac
commit
2792a1681a
@ -15,13 +15,11 @@ func chunk_position() -> Vector2:
|
|||||||
|
|
||||||
func generate() -> void:
|
func generate() -> void:
|
||||||
# TODO: this
|
# TODO: this
|
||||||
print_debug("Generating chunk at ", chunk_position())
|
|
||||||
|
|
||||||
# Let's generate a building...
|
# Let's generate a building...
|
||||||
var construct_noise := WorldGenManager.noise.get_noise_2dv(chunk_position() + construct_offset)
|
var construct_noise := WorldGenManager.noise.get_noise_2dv(chunk_position() + construct_offset)
|
||||||
var construct_height := construct_noise * construct_height_factor
|
var construct_height := construct_noise * construct_height_factor
|
||||||
if construct_height > construct_height_threshold:
|
if construct_height > construct_height_threshold:
|
||||||
print_debug("GENERATING CONSTRUCT")
|
|
||||||
var construct := CSGBox3D.new()
|
var construct := CSGBox3D.new()
|
||||||
add_child(construct)
|
add_child(construct)
|
||||||
construct.size = Vector3(60, construct_height, 60)
|
construct.size = Vector3(60, construct_height, 60)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user