move spark_particle's mknew call to the right spot
This commit is contained in:
parent
2e46d87a84
commit
dae108c231
@ -1790,6 +1790,7 @@ function boom(x,y,boominess,is_boss)
|
|||||||
end
|
end
|
||||||
|
|
||||||
spark_particle={}
|
spark_particle={}
|
||||||
|
mknew(spark_particle)
|
||||||
|
|
||||||
function spark_particle:move()
|
function spark_particle:move()
|
||||||
if (rnd(4) < 1) self.sidx += 1
|
if (rnd(4) < 1) self.sidx += 1
|
||||||
@ -1802,7 +1803,6 @@ end
|
|||||||
function spark_particle:draw()
|
function spark_particle:draw()
|
||||||
pset(self.x,self.y,self.sprs[self.sidx])
|
pset(self.x,self.y,self.sprs[self.sidx])
|
||||||
end
|
end
|
||||||
mknew(spark_particle)
|
|
||||||
|
|
||||||
function spark(sprs, x, y, butts, thrust, odds, fg)
|
function spark(sprs, x, y, butts, thrust, odds, fg)
|
||||||
if (sprs==nil or flr(rnd(odds)) ~= 0) return
|
if (sprs==nil or flr(rnd(odds)) ~= 0) return
|
||||||
|
Loading…
Reference in New Issue
Block a user