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

@@ -1,5 +1,6 @@
extends KinematicBody2D
signal death
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
@@ -55,7 +56,7 @@ func _on_Star_detect_body_entered(body_star):
#print("timer start")
func _on_Star_detect_body_exited(_body):
#if _body.name == 'Star':
#if _body.name == 'Star':
#print("obstacle exited")
#if _body.name == 'Obstacle':
#obstacle = null
@@ -74,5 +75,6 @@ func _on_Hitbox_area_entered(area: Area2D):
health -= 2
if health <= 0:
emit_signal('death')
call_deferred('queue_free')
return