zonk bleeps
This commit is contained in:
parent
0fa889356d
commit
2bd46a29e4
@ -843,9 +843,11 @@ function zonk_mode:update()
|
|||||||
if not item then
|
if not item then
|
||||||
if (not self.file or #self.file == 0) self:next_file()
|
if (not self.file or #self.file == 0) self:next_file()
|
||||||
self.playing_text=false
|
self.playing_text=false
|
||||||
|
psound(8,8,2)
|
||||||
else
|
else
|
||||||
self.txt_frame:push(item)
|
self.txt_frame:push(item)
|
||||||
self.twt = wt*self.cmul
|
self.twt = wt*self.cmul
|
||||||
|
psound(8,0,4,self.txf>4)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -855,13 +857,16 @@ function zonk_mode:update()
|
|||||||
self.wtmr = nil
|
self.wtmr = nil
|
||||||
end
|
end
|
||||||
if self.twt <= 0 then
|
if self.twt <= 0 then
|
||||||
if (btnp(1)) self.confirmed=true
|
local justc=false
|
||||||
|
if (btnp(1) and not self.confirmed) self.confirmed,justc=true,true
|
||||||
if not self.nextpage and self.confirmed and self.brth:matches(self.bwt, self.alwaysmatched) then
|
if not self.nextpage and self.confirmed and self.brth:matches(self.bwt, self.alwaysmatched) then
|
||||||
self.nextpage = true
|
self.nextpage = true
|
||||||
self.txt_frame.go = true
|
self.txt_frame.go = true
|
||||||
self.fpfrm = self.exf
|
self.fpfrm = self.exf
|
||||||
self.alwaysmatched=true
|
self.alwaysmatched=true
|
||||||
|
psound(8, justc and 16 or 18, 8, true)
|
||||||
end
|
end
|
||||||
|
if (justc and not self.nextpage) psound(8,16,2)
|
||||||
else
|
else
|
||||||
self.twt -= 1
|
self.twt -= 1
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user