Hexadecimal colors, particle data, cleaned a bit of entities, added player dash animation particles
This commit is contained in:
@@ -42,7 +42,14 @@ function Fairy:Smart()
|
||||
self.vel.x = math.cos(angle)*self.speed*distance/(8*game.scale)
|
||||
self.vel.y = math.sin(angle)*self.speed*distance/(8*game.scale)
|
||||
end
|
||||
Particle:New(self.pos.x,self.pos.y,animation.particle.fairy,angle-math.rad(180),self.speed*distance/(16*game.scale))
|
||||
|
||||
local particle_data = {
|
||||
animation = animation.particle.fairy,
|
||||
direction = angle-math.rad(180),
|
||||
speed = self.speed*distance/(16*game.scale)
|
||||
}
|
||||
|
||||
Particle:New(self.pos.x,self.pos.y,particle_data)
|
||||
end
|
||||
|
||||
function Fairy:HandleAnimation()
|
||||
|
||||
Reference in New Issue
Block a user