Added descriptions to each variable in global.gd

This commit is contained in:
Paul Black 2023-01-31 22:21:21 -07:00
parent 8c8c6ef9d3
commit 07a76b966f

View file

@ -1,15 +1,15 @@
extends Node
var mouseSensitivity = 0.01 # Unless otherwise changed by user in settings
var playingGame = false
var menuOpen = false
var fatigue = 100
var playerHealth = 100
var playerDead = false
var playerAlive = true
var playerPleaseRespawn = false
var playerYDeath = -20
var deathShield = 0
var playingGame = false # Should be true while in a map, set by menus
var menuOpen = false # Whether or not the in-game menu is active
var fatigue = 100 # Makes it so you can't run forever, you have limited energy
var playerHealth = 100 # If zero, the player dies. Bullets cause damage
var playerDead = false # Defined by Global.player_dead()
var playerAlive = true # Gets set to false by death.tscn then to true after the death timer is up
var playerPleaseRespawn = false # When true, this executes the apporiate commands to respawn the player. Controlled by death.tscn
var playerYDeath = -20 # The point in which the player will die from falling off the map, defined in map scripts
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):
if Input.is_action_pressed("sprint"):