Added pause and mute.

Improved fonts and font scaling
Added level editor
This commit is contained in:
2024-05-05 22:36:32 +01:00
parent fef3ae9d8e
commit 81d8e14746
355 changed files with 3231 additions and 5428 deletions

19
Paused.gd Normal file
View File

@@ -0,0 +1,19 @@
extends Node2D
var paused : bool = false
func _process(_delta : float) -> void:
if Input.is_action_just_pressed("pause"):
if paused:
visible = false
paused = false
get_tree().paused = false
Input.set_mouse_mode(Input.MOUSE_MODE_CONFINED_HIDDEN)
else:
visible = true
paused = true
get_tree().paused = true
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
if Input.is_action_just_pressed("mute"):
AudioServer.set_bus_mute(0, !AudioServer.is_bus_mute(0))