summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-19 21:33:18 +0200
committerAki <nthirtyone@gmail.com>2016-05-19 21:33:18 +0200
commit67ff1c220df722d6ab6a0396f84b269d783e5d88 (patch)
tree36194e7b6649a400df91246cda8ab1e0ed3fc0df
parentdf3d429c06b97ffd16e0211c81f323821122a71d (diff)
downloadroflnauts-67ff1c220df722d6ab6a0396f84b269d783e5d88.zip
roflnauts-67ff1c220df722d6ab6a0396f84b269d783e5d88.tar.gz
roflnauts-67ff1c220df722d6ab6a0396f84b269d783e5d88.tar.bz2
Shake camera
-rw-r--r--player.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/player.lua b/player.lua
index de64db1..0e8031e 100644
--- a/player.lua
+++ b/player.lua
@@ -323,6 +323,7 @@ function Player:die ()
self.lives = self.lives - 1
self.alive = false
self.spawntimer = 1
+ self.world.camera:startShake()
end
-- And then respawn. Like Jon Snow.