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

@@ -0,0 +1,21 @@
extends Area2D
const SPEED: int = 60
var velocity: Vector2 = Vector2.ZERO
func init(spawn_position: Vector2, shoot_position: Vector2) -> void:
position = spawn_position
velocity = position.direction_to(shoot_position).normalized() * SPEED
return
func _physics_process(delta: float) -> void:
position += velocity * delta
return
func _on_lifetime_timeout() -> void:
call_deferred('queue_free')
return