extends Button @export var level: PackedScene func _on_pressed(): launch_level() func launch_level(): assert(level, "A level must be specified in the editor") var err = get_tree().change_scene_to_packed(level) assert(!err)