12345678910111213141516171819 |
- extends Control
- enum EFFECT
- {
- NONE
- }
- const level_select : String = "res://scenes/level_select/level_select.tscn"
- func get_level(number: String) -> String:
- return "res://scenes/levels/level_" + number + ".tscn"
- func change_to_scene(path: String, effect: EFFECT = EFFECT.NONE) -> void:
- Display.reset()
- if path == "CURRENT":
- get_tree().call_deferred("reload_current_scene")
- else:
- get_tree().call_deferred("change_scene_to_file", path)
|