Scoring, floor timer, and hud updates
- Move elevator panel logic out of HUD; HUD now listens for signals to update floor, saved, people, and score labels - Add scaling rescue threshold that grows as you descend, with bonus points for exceeding it - Add per-floor timer that triggers a losing when expired - Add show_loss state on the screen for too-few-people and timeout failures
This commit is contained in:
parent
7939e77dff
commit
feb467c832
6 changed files with 97 additions and 48 deletions
|
|
@ -1,5 +1,5 @@
|
|||
extends Panel
|
||||
|
||||
# my beautiful screen
|
||||
var sweep_speed := 150.0
|
||||
var sweep_direction := 1
|
||||
var sweep_x := 0.0
|
||||
|
|
@ -76,7 +76,14 @@ func show_win():
|
|||
$SweepLine.visible = false
|
||||
$TargetZone.visible = false
|
||||
$AIFace.text = "ESCAPED"
|
||||
flash(Color.GREEN)
|
||||
flash(Color.GREEN)
|
||||
|
||||
func show_loss(message := "TOO FEW"):
|
||||
is_hacked = false
|
||||
$SweepLine.visible = false
|
||||
$TargetZone.visible = false
|
||||
$AIFace.text = message
|
||||
flash(Color.RED)
|
||||
|
||||
# target zones
|
||||
func attempt_hack() -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue