small boss progess
This commit is contained in:
parent
986c83ec8f
commit
3f9103b1c8
42 changed files with 769 additions and 54 deletions
|
|
@ -14,6 +14,7 @@ func _ready() -> void:
|
|||
target_node = get_tree().get_first_node_in_group("player")
|
||||
nav_agent = NavigationAgent2D.new()
|
||||
add_child(nav_agent)
|
||||
move_speed = move_speed + (randf() - 0.5) * 10.0
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if not target_node: return
|
||||
|
|
@ -32,6 +33,9 @@ func _physics_process(delta: float) -> void:
|
|||
else:
|
||||
_handle_attack_charge(delta)
|
||||
|
||||
if not nav_agent.is_target_reachable():
|
||||
velocity = Vector2.ZERO;
|
||||
|
||||
_sprite_anim()
|
||||
|
||||
super._physics_process(delta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue