game: add shooting

This commit is contained in:
2025-08-14 20:29:46 +02:00
parent 8077ba9c39
commit ca9f189696
12 changed files with 362 additions and 18 deletions

17
game/player_stats.gd Normal file
View 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