summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-14 12:14:41 +0200
committerAki <nthirtyone@gmail.com>2016-06-14 12:14:41 +0200
commit498e754f7725cbf8e19d60a03b1d7b30fdae823e (patch)
treea6ad7612c84f883914f59ada70116b74cc90c14b /player.lua
parent4e9e6722b2924df271233d7db48aec2d8ba1fd0d (diff)
downloadroflnauts-498e754f7725cbf8e19d60a03b1d7b30fdae823e.zip
roflnauts-498e754f7725cbf8e19d60a03b1d7b30fdae823e.tar.gz
roflnauts-498e754f7725cbf8e19d60a03b1d7b30fdae823e.tar.bz2
onNautKill and game restart
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.lua b/player.lua
index f7595a1..f6ecf88 100644
--- a/player.lua
+++ b/player.lua
@@ -362,8 +362,8 @@ function Player:die ()
self.lives = self.lives - 1
self.alive = false
self.spawntimer = 1
- self.world.camera:startShake()
self.body:setActive(false)
+ self.world:onNautKilled(self)
end
-- And then respawn. Like Jon Snow.