@@ -51,7 +51,7 @@ rotation = 0 | |||||
TEXT = "Nuclear Pong" | TEXT = "Nuclear Pong" | ||||
currentKey = " " | currentKey = " " | ||||
ptw = 10 | ptw = 10 | ||||
checkrate = 2 | |||||
checkrate = 0.5 | |||||
--CHECKING IF CONTROLS ARE TAKEN | --CHECKING IF CONTROLS ARE TAKEN | ||||
danger = "none" | danger = "none" | ||||
danger2 = "none" | danger2 = "none" | ||||
@@ -1666,7 +1666,7 @@ function checkCurrentServer(dt) | |||||
if IP ~= address then dserverinit = false print(IP .. " " .. address) | if IP ~= address then dserverinit = false print(IP .. " " .. address) | ||||
end | end | ||||
ts = ts + dt | ts = ts + dt | ||||
print(ts) | |||||
--print(ts) | |||||
if ts > checkrate then | if ts > checkrate then | ||||
status = "offline" | status = "offline" | ||||
print("sent ping") | print("sent ping") | ||||
@@ -688,7 +688,7 @@ function menuDraw() | |||||
end | end | ||||
if gameState == "chooseIP" then | if gameState == "chooseIP" then | ||||
IPselect = {} | IPselect = {} | ||||
if status == "offine" then | |||||
if status == "offline" then | |||||
love.graphics.printf("UNABLE TO CONNECT", 0, VIRTUAL_HEIGHT / 2, VIRTUAL_WIDTH, "center") | love.graphics.printf("UNABLE TO CONNECT", 0, VIRTUAL_HEIGHT / 2, VIRTUAL_WIDTH, "center") | ||||
elseif status == "nettest" then | elseif status == "nettest" then | ||||
table.insert( | table.insert( | ||||
@@ -708,7 +708,7 @@ function menuDraw() | |||||
table.insert( | table.insert( | ||||
IPselect, | IPselect, | ||||
newButton( | newButton( | ||||
"Guest", | |||||
"Connect as Guest", | |||||
function() | function() | ||||
globalState = "clienttest" | globalState = "clienttest" | ||||
AGAINST_AI = 0 | AGAINST_AI = 0 | ||||