21 lines
479 B
GDScript
21 lines
479 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
|
|
|
|
func _on_suicide_button_pressed() -> void:
|
|
Player.instance.damage(null, Player.instance.health)
|