mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 07:26:55 +00:00
Update tron.lua
This commit is contained in:
parent
459789a34c
commit
7997642791
8
tron.lua
8
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)
|
||||
|
Loading…
Reference in New Issue
Block a user