settings, small fixes

This commit is contained in:
Daniel Kauss Serna 2026-02-15 16:17:51 +01:00
parent b12c193636
commit e08e3ebb13
174 changed files with 997 additions and 1040 deletions

View file

@ -4,6 +4,8 @@ var lines : Array[String] = []
func _ready() -> void:
EventBus.debug_print.connect(_on_debug_print)
EventBus.debug_enable.connect(enable_debug)
func _process(delta: float) -> void:
$Label.text = "FPS: " + str(Engine.get_frames_per_second()) + "\n"
@ -16,7 +18,5 @@ func _on_debug_print(msg : String):
if len(lines) > 10:
lines.pop_front()
func _shortcut_input(event: InputEvent) -> void:
if (event.is_action_pressed("debug")):
visible = !visible
func enable_debug(value : bool):
visible = value