summaryrefslogtreecommitdiffstats
path: root/debug_info.gd
diff options
context:
space:
mode:
Diffstat (limited to 'debug_info.gd')
-rw-r--r--debug_info.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/debug_info.gd b/debug_info.gd
new file mode 100644
index 0000000..6a8c372
--- /dev/null
+++ b/debug_info.gd
@@ -0,0 +1,10 @@
+class_name DebugInfo
+extends CanvasLayer
+
+var player_state: PlayerState
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta: float) -> void:
+ var text = ""
+ if player_state: text += "%s\n" % player_state.to_string()
+ $Label.text = text