forked from team-sg/hero-mark-2
disable pausing while beating a level
This commit is contained in:
parent
5968de9ced
commit
65f6467205
4 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@ func _on_Boss1_entered_phase(phase):
|
|||
|
||||
|
||||
func _on_ExitTimer_timeout():
|
||||
Game.can_pause = false
|
||||
Game.save_boss()
|
||||
if Game.marathon_mode:
|
||||
Game.current_level += 1
|
||||
|
|
|
@ -20,6 +20,7 @@ func _on_2600_entered_phase(phase):
|
|||
|
||||
|
||||
func _on_ExitTimer_timeout():
|
||||
Game.can_pause = false
|
||||
Game.save_boss()
|
||||
if Game.marathon_mode:
|
||||
Game.current_level += 1
|
||||
|
|
|
@ -70,6 +70,7 @@ func _on_Famira_died() -> void:
|
|||
|
||||
|
||||
func _on_death_cooldown() -> void:
|
||||
Game.can_pause = false
|
||||
if Game.marathon_mode:
|
||||
Game.current_level += 1
|
||||
if Game.current_level > LevelData.marathon_end:
|
||||
|
|
|
@ -22,6 +22,7 @@ func _physics_process(delta):
|
|||
func _on_Area2D_area_entered(area):
|
||||
if area.is_in_group("player_hitbox"):
|
||||
Game.still_playing = false
|
||||
Game.can_pause = false
|
||||
var player = area.get_parent()
|
||||
player.state_chart.send_event("start_teleport")
|
||||
player.connect("teleport_finished", self, "_on_player_teleport_finished")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue