more work on level system

This commit is contained in:
Haze Weathers 2025-03-08 19:28:53 -05:00
parent b19ee682d1
commit dd54e286d8
13 changed files with 219 additions and 71 deletions

View file

@ -1,6 +1,10 @@
extends Node
## Emitted when the current scene is changed.
signal current_scene_changed(new_scene: Node)
## Methods of scaling the game viewport.
enum ScaleMode {
## Maintain aspect ratio and scale by highest whole number that will fit within the screen.
@ -46,6 +50,7 @@ var current_scene: Node:
new_scene.get_parent().remove_child.call_deferred(new_scene)
viewport.add_child.call_deferred(new_scene)
current_scene = new_scene
current_scene_changed.emit(new_scene)
func _ready() -> void: