This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld50/game/DebugOverlay.gd

16 lines
234 B
GDScript

extends Node
onready var label: Label = $DebugLabel
var buffer: String = ""
func _ready():
label.hide()
label.text = ""
func _process(_delta):
label.text = buffer
buffer = ""
func display(thing):
buffer += str(thing) + "\n"