road-rage-tank/ui/debug_menu/debug_menu.gd

19 lines
382 B
GDScript

extends CanvasLayer
var high_speed_hack := false
var zoomed_out := false
func _ready() -> void:
hide()
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("debug_menu"):
visible = not visible
func _on_high_speed_button_pressed() -> void:
high_speed_hack = not high_speed_hack
func _on_toggle_zoom_button_pressed() -> void:
zoomed_out = not zoomed_out