summaryrefslogtreecommitdiff
path: root/ghost.lua
diff options
context:
space:
mode:
authorFernando Carmona Varo <ferkiwi@gmail.com>2015-10-23 19:24:49 +0200
committerFernando Carmona Varo <ferkiwi@gmail.com>2015-10-23 19:24:49 +0200
commit611fc24518c435aac82b28b8a1ea0e832930325f (patch)
tree57ecb4e21027697a82840509fc6b15a198cb29df /ghost.lua
parente024abd75149050db3c1b2705e900e29d8d07148 (diff)
Some improvements to the HUD
Diffstat (limited to 'ghost.lua')
-rw-r--r--ghost.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghost.lua b/ghost.lua
index 7b7eea5..1c9e47e 100644
--- a/ghost.lua
+++ b/ghost.lua
@@ -92,7 +92,6 @@ for i in ipairs(ghosts) do
-- play sound and reward player
minetest.sound_play("mypacman_eatghost", {pos = boardcenter,max_hear_distance = 6, object=player, loop=false})
player:get_inventory():add_item('main', 'mypacman:cherrys')
- mypacman.update_hud(self.gameid, player)
else
-- Ghost catches the player!
gamestate.lives = gamestate.lives - 1
@@ -110,6 +109,7 @@ for i in ipairs(ghosts) do
mypacman.game_reset(self.gameid, player)
end
end
+ mypacman.update_hud(self.gameid, player)
else
local vec = {x=p.x-s.x, y=p.y-s.y, z=p.z-s.z}