Fairy lights

This commit is contained in:
lustlion
2022-01-20 14:06:40 +01:00
parent 2d8b8a23db
commit ed9873d633
4 changed files with 30 additions and 3 deletions

View File

@@ -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)