diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-23 18:47:12 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-23 18:47:12 -0700 |
commit | 683316f94c578ec030dc762eb256fd96c4dd978e (patch) | |
tree | 22a79b99738ff1a70b3ff59cca350c63e5014b3f | |
parent | e996c04e9c04c02a534c38c0aee68db096a5aba0 (diff) |
Added pellets left to the hud
changed layout of the hud
-rwxr-xr-x | hud.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |