fix pattern breaking
This commit is contained in:
parent
2e7fbb9fd4
commit
8d24c6a0a9
@ -1059,7 +1059,6 @@ function ao_splash:update()
|
|||||||
end
|
end
|
||||||
if (self.d) self.d:update()
|
if (self.d) self.d:update()
|
||||||
if self.fwait <= -32 then
|
if self.fwait <= -32 then
|
||||||
-- TODO: consent screen
|
|
||||||
mainview=consent_splash.new()
|
mainview=consent_splash.new()
|
||||||
mainview:update()
|
mainview:update()
|
||||||
end
|
end
|
||||||
@ -1551,14 +1550,15 @@ function arcade_level:spawn_word()
|
|||||||
if not self.pattern then
|
if not self.pattern then
|
||||||
self.pattern=gen_pattern()
|
self.pattern=gen_pattern()
|
||||||
self.pattern_idx = 0
|
self.pattern_idx = 0
|
||||||
self.next_break = 9 + irnd(9)
|
self.next_break = 8 + irnd(9)
|
||||||
end
|
end
|
||||||
local i, pbk = (self.pattern_idx&3)+1,0
|
local i, pbk = (self.pattern_idx&3)+1,0
|
||||||
if self.next_break == 0 then
|
if self.next_break <= 0 then
|
||||||
-- do pattern break
|
-- do pattern break
|
||||||
local np = gen_pattern()
|
local np = gen_pattern()
|
||||||
i = np[1]==self.pattern[i] and 2 or 1
|
i = np[1]==self.pattern[i] and 2 or 1
|
||||||
self.next_break = 9 + irnd(9)
|
self.pattern=np
|
||||||
|
self.next_break = 8 + irnd(9)
|
||||||
pbk=3
|
pbk=3
|
||||||
end
|
end
|
||||||
self.pattern_idx = i
|
self.pattern_idx = i
|
||||||
|
Loading…
Reference in New Issue
Block a user