aboutsummaryrefslogtreecommitdiff
path: root/particles.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-15 17:14:05 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-15 17:14:05 -0800
commit84928ff6c5c25420edd3733e97fd682b4ab00f27 (patch)
tree795b1e07892834692da1baac51065b22d8447a1f /particles.lua
parent1336a088ff535b36d8578d6fc3ae14dca68cb387 (diff)
Made a damage smoke function, changed some sounds, music has been added (woo chris!!), added test score UI in game.
SO LITTLE TOKENS!!!
Diffstat (limited to 'particles.lua')
-rw-r--r--particles.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/particles.lua b/particles.lua
index 3d28184..72e090f 100644
--- a/particles.lua
+++ b/particles.lua
@@ -38,4 +38,12 @@ function explosion(x,y, w, h)
for i = 1, w/2, 1 do
addcircle(x+rnd(w), y+rnd(h), -0.4, 0, rnd(8), rnd(1)+0.5, 9, 0)
end
+end
+
+function damagesmoke(object)
+ --smokes when damaged!
+ addcircle(object.x+rnd(object.w*0.5), object.y+rnd(object.w*0.5), -0.5, -0.2, rnd(6), rnd(1.5)+1, 5, 0)
+ if ceil(rnd(2)) == 1 then
+ addcircle(object.x+rnd(object.w*0.5), object.y+rnd(object.w*0.5), -0.4, -0.2, rnd(6), rnd(1)+0.5, 9, 0)
+ end
end \ No newline at end of file