working on blockout 4 - which should end up being level 1

This commit is contained in:
derek
2025-01-09 16:59:54 -06:00
parent e5b1926c79
commit 5b929a31cd
106 changed files with 2509 additions and 70 deletions

View File

@@ -28,10 +28,11 @@ func _on_load_pressed() -> void:
func _unhandled_input(event: InputEvent) -> void:
if Input.is_action_just_pressed("escape"):
if paused:
resume()
else:
pause()
if player.is_on_floor():
if paused:
resume()
else:
pause()
func pause():
paused = true

View File

@@ -12,7 +12,7 @@ var level_control
# Called when the node enters the scene tree for the first time.
func _ready():
level_control = self.get_node("../")
level_control = get_tree().current_scene
# Called every frame. 'delta' is the elapsed time since the previous frame.