adjust stuff to compress better
This commit is contained in:
parent
5a3ee678db
commit
4466a04340
14
vacation.p8
14
vacation.p8
@ -418,7 +418,7 @@ function zonk_txt(s, x, y, p, md, amt, frms)
|
|||||||
md = md or 0x80
|
md = md or 0x80
|
||||||
frms = frms or 0
|
frms = frms or 0
|
||||||
amt = amt or 0
|
amt = amt or 0
|
||||||
local itv = (frms>>2)&0x7ff
|
local itv = (frms>>2)&0x7fff
|
||||||
local t1 = txtbox.new{
|
local t1 = txtbox.new{
|
||||||
x=x+1,
|
x=x+1,
|
||||||
y=y+1,
|
y=y+1,
|
||||||
@ -1386,7 +1386,7 @@ end
|
|||||||
function toyphin:draw()
|
function toyphin:draw()
|
||||||
local st, y = self.state, self.y
|
local st, y = self.state, self.y
|
||||||
if (st.idle) y += wave()
|
if (st.idle) y += wave()
|
||||||
spr(st.s[1+(((t()<<1)&0x0.FFFF*#st.s)&0x7FFF)], self.x + st.xo, y + st.yo, self.state.ws, self.state.hs)
|
spr(st.s[1+(((t()<<1)&0x0.ffff*#st.s)&0x7fff)], self.x + st.xo, y + st.yo, self.state.ws, self.state.hs)
|
||||||
end
|
end
|
||||||
|
|
||||||
-->8
|
-->8
|
||||||
@ -1596,14 +1596,14 @@ 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 + flr(rnd(9))
|
self.next_break = 9 + 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 + flr(rnd(9))
|
self.next_break = 9 + irnd(9)
|
||||||
pbk=3
|
pbk=3
|
||||||
end
|
end
|
||||||
self.pattern_idx = i
|
self.pattern_idx = i
|
||||||
@ -1611,7 +1611,7 @@ function arcade_level:spawn_word()
|
|||||||
local row = self.pattern[i]
|
local row = self.pattern[i]
|
||||||
|
|
||||||
self.words:push_back(wordtarget.new{
|
self.words:push_back(wordtarget.new{
|
||||||
y=32*row+flr(rnd(13))-6,
|
y=32*row+irnd(13)-6,
|
||||||
phin=self.phin,
|
phin=self.phin,
|
||||||
on_hit = function(word)
|
on_hit = function(word)
|
||||||
self:word_hit(word)
|
self:word_hit(word)
|
||||||
@ -1642,14 +1642,14 @@ function arcade_level:next_row()
|
|||||||
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 + flr(rnd(9))
|
self.next_break = 9 + 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 + flr(rnd(9))
|
self.next_break = 9 + irnd(9)
|
||||||
pbk=3
|
pbk=3
|
||||||
end
|
end
|
||||||
self.pattern_idx = i
|
self.pattern_idx = i
|
||||||
|
Loading…
Reference in New Issue
Block a user