diff --git a/vacation.p8 b/vacation.p8 index 66db177..cd1be1e 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -36,6 +36,9 @@ function csv(s) end return ret end +function hz(n) + return t()*2*n&1~=0 +end -- generate standard "overlay" -- constructor for type tt. @@ -1080,16 +1083,18 @@ function title_screen:draw_menu() print("\^w\^tvACATION", 18, 24, 0) print("\^w\^tvACATION", 17, 23, 3) print("\^w\^tvACATION", 16, 22, 15) - print("pRESS", 43, 96, 3) - print("pRESS", 42, 95, 15) - font_default() - print("➡️", 79, 98, 3) - print("➡️", 78, 97, 15) + if hz(8) or self.a.wordremain ~= 0 then + print("pRESS", 43, 96, 3) + print("pRESS", 42, 95, 15) + font_default() + print("➡️", 79, 98, 3) + print("➡️", 78, 97, 15) + end end function title_screen:update() self.a.wordwait=999 - if btnp(1) then + if btnp(1) and self.a.wordremain ~= 0 then self.a.wordremain=0 create_game() end