Added Level singleton to manage the (un)loading of levels and entrypoints

This commit is contained in:
ChaoticByte 2024-09-27 21:30:35 +02:00
parent 642e98b44e
commit 71eae88a33
No known key found for this signature in database
7 changed files with 80 additions and 22 deletions

6
main.gd Normal file
View file

@ -0,0 +1,6 @@
extends Node2D
func _ready() -> void:
Levels.level_root = $LevelRoot
Levels.player = $Player
Levels.load_entrypoint("intro_start")