disable pausing while beating a level

This commit is contained in:
Haze Weathers 2024-07-07 16:39:22 -04:00
parent 5968de9ced
commit 65f6467205
4 changed files with 4 additions and 0 deletions

View file

@ -29,6 +29,7 @@ func _on_Boss1_entered_phase(phase):
func _on_ExitTimer_timeout(): func _on_ExitTimer_timeout():
Game.can_pause = false
Game.save_boss() Game.save_boss()
if Game.marathon_mode: if Game.marathon_mode:
Game.current_level += 1 Game.current_level += 1

View file

@ -20,6 +20,7 @@ func _on_2600_entered_phase(phase):
func _on_ExitTimer_timeout(): func _on_ExitTimer_timeout():
Game.can_pause = false
Game.save_boss() Game.save_boss()
if Game.marathon_mode: if Game.marathon_mode:
Game.current_level += 1 Game.current_level += 1

View file

@ -70,6 +70,7 @@ func _on_Famira_died() -> void:
func _on_death_cooldown() -> void: func _on_death_cooldown() -> void:
Game.can_pause = false
if Game.marathon_mode: if Game.marathon_mode:
Game.current_level += 1 Game.current_level += 1
if Game.current_level > LevelData.marathon_end: if Game.current_level > LevelData.marathon_end:

View file

@ -22,6 +22,7 @@ func _physics_process(delta):
func _on_Area2D_area_entered(area): func _on_Area2D_area_entered(area):
if area.is_in_group("player_hitbox"): if area.is_in_group("player_hitbox"):
Game.still_playing = false Game.still_playing = false
Game.can_pause = false
var player = area.get_parent() var player = area.get_parent()
player.state_chart.send_event("start_teleport") player.state_chart.send_event("start_teleport")
player.connect("teleport_finished", self, "_on_player_teleport_finished") player.connect("teleport_finished", self, "_on_player_teleport_finished")