diff --git a/scripts/gameplay/banner.lua b/scripts/gameplay/banner.lua index 23e367e..2158b5c 100644 --- a/scripts/gameplay/banner.lua +++ b/scripts/gameplay/banner.lua @@ -26,21 +26,25 @@ local drawScoreboard = function (users, currentUserId) gfx.FillColor(255,255,255); end - gfx.FontSize(26) - gfx.Text('#' .. i .. ' ' .. u.name, x, y) gfx.FontSize(26) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) - gfx.Text(string.format("%04d", math.floor(u.score/10000)), x+128+32, y) + gfx.Text(string.format("%04d", math.floor(u.score/10000)), x, y) local lastFourDigits = ((u.score / 10000) - math.floor(u.score / 10000))*10000 gfx.FontSize(22) - gfx.Text(string.format("%04d", math.floor(lastFourDigits)), x+186+32, y+1) + gfx.Text(string.format("%04d", math.floor(lastFourDigits)), x+58, y+1) + + gfx.FontSize(26) + gfx.Text('#' .. i .. ' ' .. u.name, x+120, y) end end local render = function (deltaTime, users, currentUserId) local resx, resy = game.GetResolution(); + + drawScoreboard(users, currentUserId); -- TODO: for now + if (resx > resy) then return end @@ -60,7 +64,6 @@ local render = function (deltaTime, users, currentUserId) 0 ); - drawScoreboard(users, currentUserId); end return {