First Prototype
This commit is contained in:
parent
e18beb6c4c
commit
9e3349eec3
40 changed files with 1100 additions and 48 deletions
|
|
@ -1,14 +1,37 @@
|
|||
extends Node
|
||||
|
||||
enum GAMETIME {
|
||||
MIN = 240,
|
||||
MAX = 360
|
||||
MIN = 60*5,
|
||||
MAX = 60*6
|
||||
}
|
||||
|
||||
var lastHealth = 10
|
||||
|
||||
var money = 0
|
||||
|
||||
var StormTimeLeft = 100
|
||||
|
||||
var StormThreshold = 30
|
||||
|
||||
var extracted = false
|
||||
|
||||
func resetValues():
|
||||
extracted = false
|
||||
money = 0
|
||||
lastHealth = 10
|
||||
StormTimeLeft = 100
|
||||
|
||||
func addMoney(n):
|
||||
money += n
|
||||
|
||||
func setLastHealth(n):
|
||||
lastHealth = n
|
||||
|
||||
func isStormThreshold():
|
||||
return StormThreshold >= StormTimeLeft
|
||||
|
||||
func getStormThreshold():
|
||||
return StormThreshold
|
||||
|
||||
func extractPlayer():
|
||||
extracted = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue