mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-14 20:20:29 +00:00
Update tron
This commit is contained in:
parent
9cf44d6bf3
commit
b997fba803
6
tron
6
tron
@ -475,7 +475,6 @@ local pleaseWait = function()
|
|||||||
periods = (periods % maxPeriods) + 1
|
periods = (periods % maxPeriods) + 1
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
elseif evt[1] == "new_game" then
|
elseif evt[1] == "new_game" then
|
||||||
sleep(0.1)
|
|
||||||
return evt[2]
|
return evt[2]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -492,6 +491,8 @@ local startCountdown = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local cMessage = "You are "
|
local cMessage = "You are "
|
||||||
|
scrollX = player[you].x - math.floor(scr_x / 2)
|
||||||
|
scrollY = player[you].y - math.floor(scr_y / 2)
|
||||||
for i = 3, 1, -1 do
|
for i = 3, 1, -1 do
|
||||||
render()
|
render()
|
||||||
term.setCursorPos(math.floor(scr_x / 2 - (#cMessage + #cName) / 2), math.floor(scr_y / 2))
|
term.setCursorPos(math.floor(scr_x / 2 - (#cMessage + #cName) / 2), math.floor(scr_y / 2))
|
||||||
@ -830,8 +831,7 @@ while true do
|
|||||||
grid = initGrid
|
grid = initGrid
|
||||||
})
|
})
|
||||||
parallel.waitForAny(pleaseWait, networking)
|
parallel.waitForAny(pleaseWait, networking)
|
||||||
scrollX = player[you].x - math.floor(scr_x / 2)
|
sleep(0.1)
|
||||||
scrollY = player[you].y - math.floor(scr_y / 2)
|
|
||||||
startCountdown()
|
startCountdown()
|
||||||
parallel.waitForAny(getInput, game, networking)
|
parallel.waitForAny(getInput, game, networking)
|
||||||
elseif decision == "help" then
|
elseif decision == "help" then
|
||||||
|
Loading…
Reference in New Issue
Block a user