more golfing
This commit is contained in:
parent
5591068f1d
commit
7b0c2e0133
@ -371,8 +371,8 @@ function init_ship_mt()
|
||||
setmetatable(chasey, ship_t)
|
||||
end
|
||||
|
||||
firespark = {9, 8, 2, 5, 1} -- bright spark colors
|
||||
smokespark = {13, 13, 5, 5}
|
||||
firespark = split"9, 8, 2, 5, 1"
|
||||
smokespark = split"13, 13, 5, 5"
|
||||
|
||||
player = {
|
||||
--shape
|
||||
@ -1797,24 +1797,9 @@ blip_fx_t = {
|
||||
}
|
||||
|
||||
function blip(obj, col, frames)
|
||||
obj.fx_pal = {
|
||||
[0] = 0,
|
||||
[1] = col,
|
||||
[2] = col,
|
||||
[3] = col,
|
||||
[4] = col,
|
||||
[5] = col,
|
||||
[6] = col,
|
||||
[7] = col,
|
||||
[8] = col,
|
||||
[9] = col,
|
||||
[10] = col,
|
||||
[11] = col,
|
||||
[12] = col,
|
||||
[13] = col,
|
||||
[14] = col,
|
||||
[15] = col
|
||||
}
|
||||
local p = {[0]=0}
|
||||
obj.fx_pal = p
|
||||
for i=1,15 do p[i]=col end
|
||||
if (obj.___fx_pal_event) obj.___fx_pal_event:abort()
|
||||
local e = {
|
||||
frames = frames,
|
||||
@ -1824,7 +1809,7 @@ function blip(obj, col, frames)
|
||||
add(events, e)
|
||||
end
|
||||
|
||||
bossspark = {7, 7, 10, 10, 9, 9, 9, 8, 8, 8, 2, 2, 5, 5}
|
||||
bossspark = split"7,7,10,10,9,9,9,8,8,8,2,2,5,5"
|
||||
|
||||
function boom(x,y,boominess,is_boss)
|
||||
local sp = firespark
|
||||
|
Loading…
Reference in New Issue
Block a user