Fairy lights
This commit is contained in:
@@ -14,7 +14,7 @@ Fairy = Entity:New(x,y)
|
||||
o:getBoundingBox(o.body)
|
||||
|
||||
|
||||
o.lightRange = 55
|
||||
o.lightRange = 0
|
||||
o.light = CreateLight(o.pos.x,o.pos.y,o.lightRange)
|
||||
|
||||
table.insert(LoadedEntities,o)
|
||||
@@ -46,7 +46,8 @@ function Fairy:Smart()
|
||||
local particle_data = {
|
||||
animation = animation.particle.fairy,
|
||||
direction = angle-math.rad(180),
|
||||
speed = self.speed*distance/(16*game.scale)
|
||||
speed = self.speed*distance/(16*game.scale),
|
||||
light = 85
|
||||
}
|
||||
|
||||
Particle:New(self.pos.x,self.pos.y,particle_data)
|
||||
|
||||
Reference in New Issue
Block a user