From f4459ded0d505ff7ad0db291061d2f440258df39 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 16 Feb 2024 19:06:42 -0800 Subject: [PATCH] fix mild display bugs also improves the throbber --- vacation.p8 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 5f55e22..fe02c8c 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -892,20 +892,14 @@ function zonk_mode:draw() fadetbl(15, self.fd15, ffrac) end self.txt_frame:draw() - -- TODO: draw throbber if not self.playing_text and not self.confirmed and self.twt <= 0 then font_default() print("➡️",121,121,12) - print("➡️",120,120,self:throbber_color()) + print("➡️",120,120,self.brth:matches(self.bwt) and (hz(2) and 7 or 6) or 5) end if(self.d) self.d:draw() end -function zonk_mode:throbber_color() - if (not self.bwt or self.bwt==0) return ((t()<<1)&0x1 < 1) and 7 or 6 - return self.brth:matches(self.bwt) and 7 or 6 -end - -->8 -- awakener @@ -1760,7 +1754,7 @@ function ggwp:draw() end rectfill(0, 120, 128, 128, 0x1007) font_special() - print("\^w\^tgreat job!",5,4,0) + print("\^w\^tgreat job!",5,8,0) print("fINAL SCORE:", 5, 26, 0) --0, 8, 9, 12 local xpos = 123-6*#self.score_str @@ -1769,15 +1763,15 @@ function ggwp:draw() print(self.score_str, xpos+1, 33, 12) print(self.score_str, xpos, 32, 0) - print(self.score_pct,64-3*#self.score_pct,55,self.col) + print(self.score_pct,64-3*#self.score_pct,59,self.col) font_default() local xoff = print(self.final_text, 0, -999, 0) - 1 print(self.final_text, 64-xoff/2, 90, 0) if self.frem <= 0 and not self.d then - print("➡️", 117, 120, 12) - print("➡️", 116, 119, hz(2) and 0 or 13) + print("➡️", 117, 120, 15) + print("➡️", 116, 119, hz(2) and 0 or 9) end if (self.d) self.d:draw() end @@ -1933,7 +1927,7 @@ THINK !HYPNOSIS !WORKS TEXT TOO CLOSELY. ----- center:9:20 -tHIS IS A #vACATION! +>tHIS IS A #vACATION! yOU DON'T HAVE TO DO >MUCH OF #ANYTHING. >yOU DON'T HAVE TO