aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-12-27 23:39:34 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-12-27 23:39:34 +0100
commit37acaf4a84911ea7ed4f7a7321ed3860869f9dde (patch)
tree474bdc4f8d20707187b376232a7929e343611d14
parent2b018d490ecdb60a19073525398dece8663409ac (diff)
downloadfireworkz-37acaf4a84911ea7ed4f7a7321ed3860869f9dde.tar.gz
fireworkz-37acaf4a84911ea7ed4f7a7321ed3860869f9dde.tar.bz2
fireworkz-37acaf4a84911ea7ed4f7a7321ed3860869f9dde.zip
Add "hi" firework.
-rw-r--r--init.lua52
1 files changed, 50 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 9b14c92..4f2d7b2 100644
--- a/init.lua
+++ b/init.lua
@@ -22,7 +22,8 @@ local color_map = {
local figure_map = {
default = "yellow",
ball = "magenta",
- love = "red"
+ love = "red",
+ hi = "blue"
}
local figure_ingredient_map = {
@@ -34,10 +35,11 @@ local figure_ingredient_map = {
default = {false, true},
ball = {true, true, true, true, true, true, true},
love = {true, false, true, true, true},
+ hi = {true, false, false, true, true, true, true}
}
local color_variants = {"red", "green", "blue", "yellow", "white"}
-local figure_variants = {"default", "ball", "love"}
+local figure_variants = {"default", "ball", "love", "hi"}
local variant_list = {
{colour = "blue_white_red", figure = "ball_default_love", desc = S("Blue-White-Love"),
@@ -142,6 +144,50 @@ function figures.love(r)
return tab, 7, 7
end
+function figures.hi(r)
+-- x
+-- x x
+-- x
+-- x x
+-- 0 xxxx x
+-- x x x
+-- x x x
+-- x x x
+-- x x x
+--
+-- 3210123
+ local tab = {
+ {x=0,y=0,z=0,v=60},
+ {x=0.03,y=0,z=0.01,v=60},
+ {x=0.03,y=0,z=0.02,v=60},
+ {x=0.03,y=0,z=0.03,v=60},
+ {x=0.03,y=0,z=0.04,v=60},
+ {x=0.03,y=0,z=-0.01,v=60},
+ {x=0.03,y=0,z=-0.02,v=60},
+ {x=0.03,y=0,z=-0.03,v=60},
+ {x=0.03,y=0,z=-0.04,v=60},
+ {x=0.01,y=0,z=-0.00,v=60},
+ {x=0.02,y=0,z=-0.00,v=60},
+ {x=0.03,y=0,z=-0.00,v=60},
+ {x=0,03,y=0,z=0.01,v=60},
+ {x=0,03,y=0,z=0.02,v=60},
+ {x=0,03,y=0,z=0.03,v=60},
+ {x=0,03,y=0,z=0.04,v=60},
+ {x=0,03,y=0,z=-0.01,v=60},
+ {x=0,03,y=0,z=-0.02,v=60},
+ {x=0,03,y=0,z=-0.03,v=60},
+ {x=0,03,y=0,z=-0.04,v=60},
+ {x=-0.03,y=0,z=-0.04,v=60},
+ {x=-0.03,y=0,z=-0.03,v=60},
+ {x=-0.03,y=0,z=-0.02,v=60},
+ {x=-0.03,y=0,z=-0.01,v=60},
+ {x=-0.03,y=0,z=-0.00,v=60},
+ {x=-0.03,y=0,z=0.01,v=60},
+ {x=-0.03,y=0,z=0.03,v=60}
+ }
+ return tab, 7, 7
+end
+
-- Activate fireworks
local function partcl_gen(pos, tab, size_min, size_max, colour)
@@ -234,6 +280,8 @@ for _, i in pairs(variant_list) do
figure_desc = S("Love Ball")
elseif i.figure == "love" then
figure_desc = S("Love")
+ elseif i.figure == "hi" then
+ figure_desc = S("Hi")
end
local figure = i.figure