Files
puzzle-quest/scripts/Event.gd
T
stilobique dee1ee5b1b feature/select-puzzle-update (#72)
Si tu peut regarder pour finir la pull request pour l'écran de selection des puzzles !

Co-authored-by: stilobique-i7 <aurelienvlt@free.fr>
Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com>
Reviewed-on: Athena/game-source#72
Co-authored-by: stilobique <aurelienvlt@free.fr>
Co-committed-by: stilobique <aurelienvlt@free.fr>
2021-06-04 17:54:23 +02:00

29 lines
738 B
GDScript

extends Node
## Events for loading scene
####
func _loading_is_started(_anim_name):
print("[Event#_loading_is_started]")
Global.loaded = false
func _loading_is_finished(_anim_name):
print("[Evenst#_loading_is_finished]")
Global.loaded = true
# events for load scene level
####
func _on_warcraft_pressed():
Global.current_scene_int = 0
Global.goto_scene("res://scenes/levels/warcraft/WarCraft.tscn")
func _on_home_pressed():
Global.current_scene_int = 1
Global.goto_scene("res://scenes/levels/home/Home.tscn")
func _on_reset_level(level, node, index, parent):
Global.current_scene_int = index
level.reset()
parent.configure_reset(level, node, index)
parent.configure_counter(level, node)
Global.current_scene_int = null