diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 17:13:09 +0200 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 17:21:41 +0200 |
commit | 3a59f18eb196a3fddb8c67d5e5143a6e3ab0e11b (patch) | |
tree | 1b9b0f5d6b55fdb6e7cacaf4fc1d5cd50b23ff4e /pacmine/hud.lua | |
parent | a538d073951f06bf52f7e9f7cc8afe76efffb343 (diff) | |
parent | 683316f94c578ec030dc762eb256fd96c4dd978e (diff) |
Merge branch 'master' into arcade
Conflicts:
pacmine/init.lua
pacmine/portals.lua
Diffstat (limited to 'pacmine/hud.lua')
-rwxr-xr-x | pacmine/hud.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pacmine/hud.lua b/pacmine/hud.lua index 162917d..1598a2b 100755 --- a/pacmine/hud.lua +++ b/pacmine/hud.lua @@ -11,10 +11,11 @@ function pacmine.update_hud(id, player) pacmine.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 @@ -23,7 +24,7 @@ function pacmine.update_hud(id, player) position = {x = 0, y = 1}, offset = {x=100, y = -100}, scale = {x = 100, y = 100}, - number = 0x8888FF, --color + number = 0xfff227, --color text = hudtext }) hud_table[game.player_name] = hud |