more golfing

This commit is contained in:
Kistaro Windrider 2023-09-12 23:52:14 -07:00
parent 5591068f1d
commit 7b0c2e0133
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -371,8 +371,8 @@ function init_ship_mt()
setmetatable(chasey, ship_t) setmetatable(chasey, ship_t)
end end
firespark = {9, 8, 2, 5, 1} -- bright spark colors firespark = split"9, 8, 2, 5, 1"
smokespark = {13, 13, 5, 5} smokespark = split"13, 13, 5, 5"
player = { player = {
--shape --shape
@ -1797,24 +1797,9 @@ blip_fx_t = {
} }
function blip(obj, col, frames) function blip(obj, col, frames)
obj.fx_pal = { local p = {[0]=0}
[0] = 0, obj.fx_pal = p
[1] = col, for i=1,15 do p[i]=col end
[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
}
if (obj.___fx_pal_event) obj.___fx_pal_event:abort() if (obj.___fx_pal_event) obj.___fx_pal_event:abort()
local e = { local e = {
frames = frames, frames = frames,
@ -1824,7 +1809,7 @@ function blip(obj, col, frames)
add(events, e) add(events, e)
end 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) function boom(x,y,boominess,is_boss)
local sp = firespark local sp = firespark