flash frames on player death
This commit is contained in:
parent
beb5df6613
commit
bae7e4f424
1 changed files with 3 additions and 2 deletions
|
|
@ -84,11 +84,12 @@ end
|
|||
|
||||
function Player:kill()
|
||||
self:destroy()
|
||||
flash(4)
|
||||
camera:shake(6, 60, .4)
|
||||
slow(.15, 1)
|
||||
for i=1, random(8,12) do
|
||||
self.area:addGameObject('ExplodeParticle', self.x, self.y)
|
||||
end
|
||||
slow(.15, 1)
|
||||
camera:shake(6, 60, .4)
|
||||
end
|
||||
|
||||
return Player
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue