summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-23 18:47:12 -0700
committerDonBatman <serfdon@gmail.com>2015-10-23 18:47:12 -0700
commit683316f94c578ec030dc762eb256fd96c4dd978e (patch)
tree22a79b99738ff1a70b3ff59cca350c63e5014b3f
parente996c04e9c04c02a534c38c0aee68db096a5aba0 (diff)
Added pellets left to the hud
changed layout of the hud
-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