1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-10-29 22:43:00 +00:00

Update tron

This commit is contained in:
LDDestroier
2018-11-14 19:38:57 -05:00
committed by GitHub
parent 9cf44d6bf3
commit b997fba803

6
tron
View File

@@ -475,7 +475,6 @@ local pleaseWait = function()
periods = (periods % maxPeriods) + 1
term.clearLine()
elseif evt[1] == "new_game" then
sleep(0.1)
return evt[2]
end
end
@@ -492,6 +491,8 @@ local startCountdown = function()
end
end
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
render()
term.setCursorPos(math.floor(scr_x / 2 - (#cMessage + #cName) / 2), math.floor(scr_y / 2))
@@ -830,8 +831,7 @@ while true do
grid = initGrid
})
parallel.waitForAny(pleaseWait, networking)
scrollX = player[you].x - math.floor(scr_x / 2)
scrollY = player[you].y - math.floor(scr_y / 2)
sleep(0.1)
startCountdown()
parallel.waitForAny(getInput, game, networking)
elseif decision == "help" then