4.6, new attack, enemy spawning, shaders, bunch of stuff
This commit is contained in:
parent
e08e3ebb13
commit
19517a3176
84 changed files with 13348 additions and 91399 deletions
|
|
@ -10,7 +10,7 @@ func _ready():
|
|||
|
||||
rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
|
||||
func change_scene(target_path: String, is_error: bool = false):
|
||||
func change_scene(target_path: PackedScene, is_error: bool = false):
|
||||
rect.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||
|
||||
if is_error:
|
||||
|
|
@ -26,9 +26,9 @@ func change_scene(target_path: String, is_error: bool = false):
|
|||
display_log_file(log_file)
|
||||
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
var error = get_tree().change_scene_to_file(target_path)
|
||||
var error = get_tree().change_scene_to_packed(target_path)
|
||||
if error != OK:
|
||||
push_error("Failed to load scene: " + target_path)
|
||||
push_error("Failed to load scene")
|
||||
|
||||
log_display.visible = false
|
||||
log_display.text = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue