game: improve enemy-manager

This commit is contained in:
2025-08-21 06:11:09 +02:00
parent 83e2067fea
commit f0f717e00e
5 changed files with 63 additions and 4 deletions

View File

@@ -16,10 +16,12 @@ var dead: bool = false
var death_anim_done: bool = false
var god_mode: bool = false
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("active"):
weapon.do_active()
func _ready() -> void:
camera.position = global_position
main_ui.player_ui.update_hp()
@@ -27,7 +29,6 @@ func _ready() -> void:
if not weapon:
weapon = WEAPON_SWORD.instantiate()
add_child(weapon)
func _physics_process(delta: float) -> void: