summaryrefslogtreecommitdiffstats
path: root/debug_info.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-29 17:32:34 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-29 17:32:34 +0200
commitdf09cd144f7fc81fba89981e6e28423a4cd31fe7 (patch)
tree7e5d771d20a2612c7b62974352a8537f0ec404d0 /debug_info.gd
parent16927c75f3e12bc3a4001910c316f079b0142e2a (diff)
Rework debug_info
Diffstat (limited to 'debug_info.gd')
-rw-r--r--debug_info.gd11
1 files changed, 3 insertions, 8 deletions
diff --git a/debug_info.gd b/debug_info.gd
index af11e24..c8c9e10 100644
--- a/debug_info.gd
+++ b/debug_info.gd
@@ -11,13 +11,8 @@ func _update():
text += "FPS: %d\n" % Engine.get_frames_per_second()
- var room: Node = get_tree().root.get_node_or_null("Top/ActiveRoom")
- var player: Player
- if room: player = room.find_child("Player")
-
- if room:
- text += "Room: %s\n" % room.scene_file_path
- if player:
- text += "%s\n" % player.state.to_string()
+ var nodes = get_tree().get_nodes_in_group("debug_info")
+ for node in nodes:
+ text += node._debug_info()
$Label.text = text