game: add weapon base and sword

This commit is contained in:
2025-08-21 00:32:18 +02:00
parent 156da4898e
commit 8bd7bfa406
21 changed files with 200 additions and 163 deletions

View File

@@ -5,7 +5,6 @@ extends CharacterBody2D
@export var main_ui: MainUI
@onready var sprite_2d: Sprite2D = $Sprite2D
@onready var attack_sword: Node2D = $AttackSword
var player_stats: PlayerStats = PlayerStats.new()
var modifiers: Array[PlayerStatsModifier] = []
@@ -61,7 +60,6 @@ func die():
dead = true
remove_from_group("damagable")
get_tree().call_group("enemy", "cheer")
attack_sword.queue_free()
GlobalConst.sig_stop_spawning.emit(true)
sprite_2d.z_index += 10
get_taunted()