forked from interstellar_development/freeftf
Prep for forgejo migration.
This commit is contained in:
parent
882ef67c42
commit
56d77fbb53
6 changed files with 324 additions and 83 deletions
|
|
@ -17,6 +17,7 @@ var is_running = false
|
|||
var frozen = 0
|
||||
var dead = 0
|
||||
var escaped = 0
|
||||
var result = "You Lose"
|
||||
var player_escaped = false
|
||||
var is_beast = false
|
||||
var character = preload("res://objects/player.tscn")
|
||||
|
|
@ -56,6 +57,11 @@ func has_escaped():
|
|||
|
||||
func _process(_delta):
|
||||
if is_running and players <= 0:
|
||||
if player_escaped or (is_beast and escaped == 0):
|
||||
result = "You Win"
|
||||
else:
|
||||
result = "You Lose"
|
||||
Game.reset()
|
||||
get_tree().change_scene_to_file("res://menus/result.tscn")
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
is_running = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue