Add build directory to .gitignore, create export presets for Web and Windows Desktop, adjust z-index and mouse filter in level_1.tscn, add update_game_state function in level.gd, change main_scene path in project.godot, set rendering method to "gl_compatibility", add LevelSelect and related nodes in main_menu.tscn, create scene_manager.tscn with MainMenu node, implement functionality for menu button selection in main_menu.gd.

This commit is contained in:
Dan 2024-05-10 14:39:24 +01:00
parent ca4788ce6f
commit b6cdb68b4e
21 changed files with 499 additions and 10 deletions

12
ui/scripts/pause_menu.gd Normal file
View file

@ -0,0 +1,12 @@
extends Control
class_name PauseMenu
signal resume_game
func _unhandled_input(event : InputEvent) -> void:
if event.is_action_pressed("ui_cancel"):
Log.pr("Pause Menu: ui_cancel pressed")
if get_tree().paused:
Log.pr("Sending unpause signal")
resume_game.emit()