From 683316f94c578ec030dc762eb256fd96c4dd978e Mon Sep 17 00:00:00 2001 From: DonBatman Date: Fri, 23 Oct 2015 18:47:12 -0700 Subject: Added pellets left to the hud changed layout of the hud --- hud.lua | 9 +++++---- 1 file 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 -- cgit v1.2.3