lobby cam
This commit is contained in:
@@ -5,6 +5,7 @@ extends Node3D
|
||||
## previous module first, so no old mesh or collider can survive into the next fight.
|
||||
|
||||
@onready var _level_root: Node3D = $LevelRoot
|
||||
@onready var _camera: IsoCamera = $Player/Camera3D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -23,4 +24,5 @@ func load_active_level() -> void:
|
||||
if level == null or level.level_scene == null:
|
||||
push_warning("game_shell: active level has no level_scene")
|
||||
return
|
||||
_camera.set_framing_scale(level.camera_zoom)
|
||||
_level_root.add_child(level.level_scene.instantiate())
|
||||
|
||||
Reference in New Issue
Block a user