diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-23 19:24:49 +0200 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-23 19:24:49 +0200 |
commit | 611fc24518c435aac82b28b8a1ea0e832930325f (patch) | |
tree | 57ecb4e21027697a82840509fc6b15a198cb29df /ghost.lua | |
parent | e024abd75149050db3c1b2705e900e29d8d07148 (diff) |
Some improvements to the HUD
Diffstat (limited to 'ghost.lua')
-rw-r--r-- | ghost.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} |