mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-08 08:20:27 +00:00
Update tron.lua
This commit is contained in:
parent
7997642791
commit
e05d0f6131
4
tron.lua
4
tron.lua
@ -605,9 +605,9 @@ local startCountdown = function()
|
||||
for i = 3, 1, -1 do
|
||||
render()
|
||||
termsetTextColor(colors.white)
|
||||
for x = 1, #cMessage do
|
||||
for x = 1, #cMessage+1 do
|
||||
termsetCursorPos(-1 + x + mathfloor(scr_x / 2 - (#cMessage + #cName) / 2), mathfloor(scr_y / 2) + 2)
|
||||
if cMessage:sub(x,x) ~= " " then
|
||||
if cMessage:sub(x,x) ~= " " and x <= #cMessage then
|
||||
termwrite(cMessage:sub(x,x))
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user