improvements to particles and animation can now have variable speed

This commit is contained in:
lustlion
2022-03-09 06:04:36 +01:00
parent e8242f6564
commit d3796a0204
6 changed files with 38 additions and 23 deletions

View File

@@ -212,8 +212,10 @@ function Player:doPhysics()
-- dash particle
local particle_data = {
animation = self.body,
animation_speed = 0,
sprite_tint = hex2rgb("#fed100"),
sprite_alpha = 0.5,
time = 0.2,
sprite_flip = {
x = self.sprite_flip.x,
y = self.sprite_flip.y
@@ -245,8 +247,10 @@ function Player:doPhysics()
local particle_data = {
animation = self.body,
animation_speed = 0,
sprite_tint = hex2rgb("#fed100"),
sprite_alpha = 0.5,
time = 0.05,
sprite_flip = {
x = self.sprite_flip.x,
y = self.sprite_flip.y