summaryrefslogtreecommitdiffstats
path: root/GlobalData.gd
blob: 8cf9d94c9f8c3091e9eddcbc545148142224cb47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extends Node

export(int) var player_hp = 3
export(float) var GRAVITY: float = 1200
export(float) var MAX_FALL_SPEED: float = 1200

signal player_hp_changed

func add_player_hp(delta: int):
	player_hp += delta
	emit_signal("player_hp_changed", player_hp)

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass