From 79976427919ced09aa184bb267c43a78065feb5e Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Tue, 20 Nov 2018 17:47:29 -0500 Subject: [PATCH] Update tron.lua --- tron.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tron.lua b/tron.lua index ef33723..18f46d3 100644 --- a/tron.lua +++ b/tron.lua @@ -604,9 +604,13 @@ local startCountdown = function() scrollY = player[you].y - mathfloor(scr_y / 2) for i = 3, 1, -1 do render() - termsetCursorPos(mathfloor(scr_x / 2 - (#cMessage + #cName) / 2), mathfloor(scr_y / 2) + 2) termsetTextColor(colors.white) - termwrite(cMessage) + for x = 1, #cMessage do + termsetCursorPos(-1 + x + mathfloor(scr_x / 2 - (#cMessage + #cName) / 2), mathfloor(scr_y / 2) + 2) + if cMessage:sub(x,x) ~= " " then + termwrite(cMessage:sub(x,x)) + end + end termsetTextColor(col) termwrite(cName) termsetTextColor(colors.white)