From 498e754f7725cbf8e19d60a03b1d7b30fdae823e Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 14 Jun 2016 12:14:41 +0200 Subject: onNautKill and game restart --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player.lua') 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. -- cgit v1.1