intro cutscene
This commit is contained in:
parent
0f8f737bc0
commit
608c4a73c7
4 changed files with 279 additions and 4 deletions
|
|
@ -10,9 +10,7 @@ var start_time_msec := 0
|
|||
|
||||
static func start_game() -> void:
|
||||
if level:
|
||||
level.active = true
|
||||
level.level_started.emit()
|
||||
level.start_time_msec = Time.get_ticks_msec()
|
||||
level._start_sequence()
|
||||
|
||||
|
||||
static func is_active() -> bool:
|
||||
|
|
@ -21,6 +19,14 @@ static func is_active() -> bool:
|
|||
else:
|
||||
return false
|
||||
|
||||
func _start_sequence() -> void:
|
||||
%IntroCutscene.play("intro_cutscene")
|
||||
|
||||
func _anim_intro_cutscene_done() -> void:
|
||||
level.active = true
|
||||
level.level_started.emit()
|
||||
level.start_time_msec = Time.get_ticks_msec()
|
||||
|
||||
func _ready() -> void:
|
||||
%ResultsScreen.hide()
|
||||
level = self
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue