summaryrefslogtreecommitdiff
path: root/pacmine/hud.lua
diff options
context:
space:
mode:
authorFernando Carmona Varo <ferkiwi@gmail.com>2015-10-26 20:20:11 +0100
committerFernando Carmona Varo <ferkiwi@gmail.com>2015-10-26 20:20:11 +0100
commita593cc543219453baee971860072d286f4c2c24c (patch)
tree1b57dd4eaa2af185ffb3d3961048121172af4e0a /pacmine/hud.lua
parent23814830b04f778e6c2ca655d28644a39f4d3d2f (diff)
Added game logic to the mini board
Diffstat (limited to 'pacmine/hud.lua')
-rwxr-xr-xpacmine/hud.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacmine/hud.lua b/pacmine/hud.lua
index 1598a2b..8fb9e0c 100755
--- a/pacmine/hud.lua
+++ b/pacmine/hud.lua
@@ -11,7 +11,7 @@ function pacmine.update_hud(id, player)
pacmine.remove_hud(player)
return
end
- local pellets_left = 252 - game.pellet_count
+ local pellets_left = game.pellet_total - game.pellet_count
local hudtext = "Score " .. game.score
.. "\nLevel " .. game.level
.. "\nLives " .. game.lives