aboutsummaryrefslogtreecommitdiff
path: root/src/objs/player.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-17 22:06:18 +0100
committerne_mene <[email protected]>2026-03-17 22:07:23 +0100
commit518f5e58b14c6659ef1af0665e61b14fd8f00b56 (patch)
tree34b7c07a749b4afea8532560653b6755f4eab0f2 /src/objs/player.lua
parent27b53e9fdfd3b7f758236657e93e0bc524149603 (diff)
speck bounce and speck reusage
Diffstat (limited to 'src/objs/player.lua')
-rw-r--r--src/objs/player.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/objs/player.lua b/src/objs/player.lua
index 4f05c3b..3f1e2aa 100644
--- a/src/objs/player.lua
+++ b/src/objs/player.lua
@@ -96,6 +96,13 @@ function new_player(x, y)
add_comp(ent, "Player")
add_comp(ent, "Speck_System")
+ ent.speck_sys.interval = 0.05
+
+ ent.speck_sys.lifetime_max = 0.6
+ ent.speck_sys.lifetime_min = 0.3
+
+ ent.speck_sys.forcey = 1000
+ ent.speck_sys.bounce = true
add_comp(ent, "Body", x, y, 8, 14, {
offsetx = -4,