game: add shooting
This commit is contained in:
17
game/player_stats.gd
Normal file
17
game/player_stats.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends Node
|
||||
|
||||
const BASE_SPEED: float = 5.0
|
||||
const BASE_MAX_HEALTH: float = 100.0
|
||||
const BASE_SPRINT_MULTIPLIER: float = 1.5
|
||||
|
||||
var current_health: float
|
||||
var speed: float
|
||||
var sprint_multiplier: float
|
||||
|
||||
func _ready() -> void:
|
||||
current_health = BASE_MAX_HEALTH
|
||||
speed = BASE_SPEED
|
||||
sprint_multiplier = BASE_SPRINT_MULTIPLIER
|
||||
|
||||
func add_health(val: float):
|
||||
current_health += val
|
Reference in New Issue
Block a user