intro cutscene

This commit is contained in:
Michael Campbell 2026-04-30 05:26:04 -04:00
parent 0f8f737bc0
commit 608c4a73c7
4 changed files with 279 additions and 4 deletions

View file

@ -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