From 537a086e9bf7b2d9ceb4b46397f855c691f3e5e0 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Wed, 28 Feb 2024 22:31:51 -0800 Subject: [PATCH] fix bgm --- vacation.p8 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index d7f6546..7409535 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -832,8 +832,8 @@ function zonk_mode:u() self.brth:u() self.txt_frame:u() if (self.d and self.d:u()) seq:next() - if not self.d and self.nextbgm and not self.xbgm and (not stat(57) or stat(56) == 0) then - music(self.nextbgm, stat(57) and 0 or 500, 7) + if not self.d and self.nextbgm and not self.xbgm and stat(56) <= 0 then + music(self.nextbgm, 500, 7) self.nextbgm = nil end end @@ -857,6 +857,9 @@ function zonk_mode:draw() print("➡️",120,120,self.brth:mt(self.bwt) and (hz(2) and 7 or 6) or 5) end if(self.d) self.d:draw() + -- debug info + -- print(tostr(stat(56)), 0, 0, 7) + end -->8 @@ -900,7 +903,7 @@ wide awake! function normal_awakener() return zonk_mode.new{ - music=19, + bgm=19, br_cols=brth_bg, file=[[c:2:15 bon yOU'VE LEARNED @@ -2142,7 +2145,7 @@ DEEP,TRANCE,PLASTIC,HYPNOSIS,SENSE]], { f=zonk_mode.new, params={{ - music=17, + bgm=17, files={ [[c:3:19 >yOU'RE DEFINITELY @@ -2261,7 +2264,7 @@ DEEP,SINK,PLIANT,AUTOMATIC,HOLLOW]] { f=zonk_mode.new, params={{ - music=19, + bgm=19, files={ [[c:1:16 bon bpal:1 sUCH A #GOOD #TOY!]],