Enemies adjusted.

This commit is contained in:
2025-03-10 12:40:45 +01:00
parent eed544a9d8
commit 23ddace3fa
5 changed files with 191 additions and 54 deletions

View File

@ -44,14 +44,19 @@ func move_character(delta: float) -> void:
func set_character_data():
match self.name:
"Forkman":
speed = 100
health = 100
shield = 100
"Swordman":
speed = 120
health = 100
shield = 100
"Ork":
speed = 80
health = 150
shield = 100
"Cobold":
speed = 200
health = 50
shield = 0
get_node("CharacterBody2D/AnimatedSprite2D").speed_scale = float(speed) / 100 #adjust animation speed based on the character speed
current_health = health
current_shield = shield