Update Dog entity with new textures and animations. Add Level 4 scene with game elements and UI components.
This commit is contained in:
parent
f4e2169009
commit
11f8c1d815
14 changed files with 432 additions and 9 deletions
|
|
@ -5,7 +5,7 @@ class_name Dog
|
|||
|
||||
var acquired_target : Bee = null
|
||||
var target_timer : float = 0.0
|
||||
var distracted : bool = false
|
||||
@export var distracted : bool = false
|
||||
|
||||
func _ready():
|
||||
death_box.connect("body_entered", Callable(self, "_on_body_entered"))
|
||||
|
|
@ -16,7 +16,7 @@ func _process(delta):
|
|||
target_timer += delta
|
||||
|
||||
# Look at the target
|
||||
rotation = lerp_angle(rotation, rotation + get_angle_to(acquired_target.global_position), 0.25)
|
||||
rotation = lerp_angle(rotation, rotation + get_angle_to(acquired_target.global_position), 0.5)
|
||||
|
||||
if target_timer > 3.0:
|
||||
# Kill the target!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue