Added descriptions to each variable in global.gd
This commit is contained in:
parent
8c8c6ef9d3
commit
07a76b966f
1 changed files with 9 additions and 9 deletions
|
@ -1,15 +1,15 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var mouseSensitivity = 0.01 # Unless otherwise changed by user in settings
|
var mouseSensitivity = 0.01 # Unless otherwise changed by user in settings
|
||||||
var playingGame = false
|
var playingGame = false # Should be true while in a map, set by menus
|
||||||
var menuOpen = false
|
var menuOpen = false # Whether or not the in-game menu is active
|
||||||
var fatigue = 100
|
var fatigue = 100 # Makes it so you can't run forever, you have limited energy
|
||||||
var playerHealth = 100
|
var playerHealth = 100 # If zero, the player dies. Bullets cause damage
|
||||||
var playerDead = false
|
var playerDead = false # Defined by Global.player_dead()
|
||||||
var playerAlive = true
|
var playerAlive = true # Gets set to false by death.tscn then to true after the death timer is up
|
||||||
var playerPleaseRespawn = false
|
var playerPleaseRespawn = false # When true, this executes the apporiate commands to respawn the player. Controlled by death.tscn
|
||||||
var playerYDeath = -20
|
var playerYDeath = -20 # The point in which the player will die from falling off the map, defined in map scripts
|
||||||
var deathShield = 0
|
var deathShield = 0 # Makes you unkillable for a specified amount of time. Used to prevent the kill screen from appearing twice as well
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
if Input.is_action_pressed("sprint"):
|
if Input.is_action_pressed("sprint"):
|
||||||
|
|
Loading…
Reference in a new issue