make "press right" blink when you did it

This commit is contained in:
Kistaro Windrider 2024-02-11 16:42:13 -08:00
parent 3070e2ef15
commit f751252950
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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