added objective, added boss

This commit is contained in:
2021-12-05 03:26:09 -06:00
parent db6cec47b4
commit eb0ec1287f
27 changed files with 945 additions and 60 deletions

View File

@@ -7,6 +7,8 @@ export var FRICTION: int = 1000
const HEALTH_SLICES: Array = [0, 18, 35, 50, 65, 82, 100]
var health_index: int = 6
var l5_gems: int = 0
var hud: CanvasLayer = null
var velocity: Vector2 = Vector2.ZERO
@@ -40,6 +42,7 @@ func load_hud(node: CanvasLayer) -> void:
return
func set_weapon_position(pos: Vector2) -> void:
if pos[0] < 0: # facing left
$SwordAnimation.position.x = -8
$SwordAnimation.position.y = -6