summaryrefslogtreecommitdiff
path: root/hud.lua
diff options
context:
space:
mode:
Diffstat (limited to 'hud.lua')
-rwxr-xr-xhud.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/hud.lua b/hud.lua
index d1f2b34..a20e767 100755
--- a/hud.lua
+++ b/hud.lua
@@ -11,10 +11,11 @@ function mypacman.update_hud(id, player)
mypacman.remove_hud(player)
return
end
-
- local hudtext = "Score: " .. game.score
- .. "\nLevel: " .. game.level
- .. "\nLives: " .. game.lives
+ local pellets_left = 252 - game.pellet_count
+ local hudtext = "Score " .. game.score
+ .. "\nLevel " .. game.level
+ .. "\nLives " .. game.lives
+ .. "\nPellets " .. pellets_left
local hud = hud_table[game.player_name]
if not hud then