Final jam version submisson: added placeholder sounds, fixed character

flashing on game restart.
This commit is contained in:
Henry 2026-03-08 14:26:21 +00:00
parent 8679e817ee
commit df13ee42d8
36 changed files with 400 additions and 58 deletions

View file

@ -11,11 +11,12 @@ var pause: bool = false
var horse_counter: int = 0
var horse_phase: bool = true
var exploding:bool = false
var exploding:bool = false
var heart_taken: bool = false
var heart_broken: bool = false
@onready var boss = $AnimationPlayer
@onready var heart = $Boss/Heart/AnimationPlayer
@onready var screensize = get_viewport_rect().size
func _ready():
@ -63,8 +64,10 @@ func boss_horse():
print("Boss horse!")
await get_tree().create_timer(2).timeout
EventBus.flash_screen.emit(.15)
$Heart.hide()
$Heart.monitoring = false
#if heart_taken == true: return
#$Heart.hide()
#heart.stop()
#$Heart.monitoring = false
$Sprite2D.frame = 7
$Horse.show()
$Horse.start()
@ -105,6 +108,7 @@ func offer_heart():
print("Lady of Whispers offers you a heart!")
boss.play("rise")
await get_tree().create_timer(4).timeout
$Heart/AnimationPlayer.play("beat")
$Heart.show()
$Heart.monitoring = true
$Heart.monitorable = true
@ -112,10 +116,15 @@ func offer_heart():
func heart_check():
print("Heart check!")
await get_tree().create_timer(5).timeout
if heart_taken == false:
await get_tree().create_timer(4).timeout
await get_tree().create_timer(1).timeout
horse_counter = 0
print("Horse Counter:",horse_counter)
$Heart/AnimationPlayer.stop()
$Heart.hide()
$Heart.monitoring = false
$Heart.monitorable = false
if heart_taken == true or heart_broken == true:
#$Heart.monitoring = false