Added win condition for level 1 and added boss fight for level 5
This commit is contained in:
@@ -20,7 +20,7 @@ func _ready() -> void:
|
||||
|
||||
func _physics_process(delta):
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
velocity = move_and_slide(velocity)
|
||||
@@ -34,7 +34,7 @@ func _on_Area2D_body_entered(body):
|
||||
self.visible = true
|
||||
$AnimatedSprite.play("appear")
|
||||
counter = 1
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_AnimatedSprite_animation_finished():
|
||||
|
Reference in New Issue
Block a user