Compare commits

..

No commits in common. "9ef762268f3a9405fd06bf46f6f981781bf3566f" and "f9e28fa0e280aa0a03dc3c53218699de609fc221" have entirely different histories.

View File

@ -691,7 +691,7 @@ spewy = frownie.new{
}
mknew(spewy, function(ship)
ship.main_gun=ship.main_gun or protron_gun.new{enemy=true}
end)
end})
chasey = ship_m.new{
sprite = 5,
@ -872,7 +872,7 @@ function load_level(levelfile)
currentlevel[row[1]]=row
end
end
assert(found_eol)
assert found_eol
end
function level_frame()
@ -889,7 +889,7 @@ function level_frame()
while cbs do
assert(cbs[1] == distance)
local f = _ENV[cbs[2]]
assert(type(f) == "function", cbs[2].." at "..distance.." is not a function")
assert(type(f) == "function", cbs[2].." at "..distance..." is not a function")
f(unpack(cbs, 3))
cbs=cbs.next
end
@ -914,7 +914,7 @@ function spawn_blocking_rnd_x(typ)
freeze -= self.ice
self.ice = 0
self:orig_die()
end,
end
}
eships:push_back(s)
return s
@ -1020,14 +1020,14 @@ function spawn_rnd(typ, blocking, goodie,altspr)
freeze += blocking
s = typ.new{
x = rnd(104),
y = -(typ.size * 8 - 1),
ice=blocking,
y = -(typ.size * 8 - 1)
ice=blocking
die=function(self)
freeze -= self.ice
self.ice=0
typ.die(self)
spawn_goodie(goodie, self.x, self.y, self.size)
end,
end
}
if (altspr) s.spr = altspr
eships:push_back(s)
@ -1043,7 +1043,7 @@ function spawn_goodie(goodie_name, x, y, sz)
end
function multi(times, interval, fnm, ...)
local f,irm,vargs = _ENV[fnm],interval,pack(...)
local f,irm = _ENV[fnm],interval
assert(type(f) == "function", fnm.." not a function")
fnm(...)
events:push_back{move=function()
@ -1051,7 +1051,7 @@ function multi(times, interval, fnm, ...)
if irm <= 0 then
irm=interval
times-=1
fnm(unpack(vargs))
fnm(...)
return times <= 1
end
end}
@ -1943,7 +1943,6 @@ gun_swap = powerup.new{
mknew(gun_swap)
function spawn_main_gun_at(x, y, gunt)
if (type(gunt)=="string") gunt=_ENV[gunt]
local gun_p = gun_swap.new{
gun = gunt.new()
}
@ -1957,7 +1956,6 @@ spec_gun_pl = {
}
function spawn_spec_gun_at(x, y, gunt)
if (type(gunt)=="string") gunt=_ENV[gunt]
local gun_p = gun_swap.new{
gun = gunt.new(),
hitship = function(self, ship)