Update tron.lua

This commit is contained in:
LDDestroier 2018-11-20 17:47:29 -05:00 committed by GitHub
parent 459789a34c
commit 7997642791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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)