Added win condition for level 1 and added boss fight for level 5

This commit is contained in:
VoidTwo
2021-12-10 14:23:23 -06:00
parent 3c880d1566
commit e5aafa6cd0
74 changed files with 791 additions and 1300 deletions

View File

@@ -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():