Access global map data directly

This commit is contained in:
Dan Baker 2025-06-26 15:14:40 +01:00
parent 1dc768ad27
commit e7337bede6
5 changed files with 11 additions and 222 deletions

View file

@ -1,6 +1,7 @@
# GroundTile.gd
class_name GroundTile
extends Node3D
@onready var debug_text: Label = $DebugText/DebugTextViewport/DebugTextLabel
@onready var tree_spawner = $Trees
@onready var grass_spawner = $Grass
@ -39,4 +40,4 @@ func spawn_content():
grass_spawner.spawn_grass_for_cell(cell_info)
func update_text_label() -> void:
debug_text.text = str(cell_info.vegetation_density)
debug_text.text = str(cell_info.vegetation_density)