mirror of
https://github.com/LDDestroier/CC/
synced 2025-04-26 12:33:12 +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)
|
scrollY = player[you].y - mathfloor(scr_y / 2)
|
||||||
for i = 3, 1, -1 do
|
for i = 3, 1, -1 do
|
||||||
render()
|
render()
|
||||||
termsetCursorPos(mathfloor(scr_x / 2 - (#cMessage + #cName) / 2), mathfloor(scr_y / 2) + 2)
|
|
||||||
termsetTextColor(colors.white)
|
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)
|
termsetTextColor(col)
|
||||||
termwrite(cName)
|
termwrite(cName)
|
||||||
termsetTextColor(colors.white)
|
termsetTextColor(colors.white)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user