|
@@ -24,7 +24,7 @@ wall1width = 30 |
|
|
nuclearanimation = 3 |
|
|
nuclearanimation = 3 |
|
|
easternum = 0 |
|
|
easternum = 0 |
|
|
ball_DIR = 0 |
|
|
ball_DIR = 0 |
|
|
updaterate = 0.1 |
|
|
|
|
|
|
|
|
updaterate = 0.03 |
|
|
RED = 255 |
|
|
RED = 255 |
|
|
hitNum = {} |
|
|
hitNum = {} |
|
|
hitNum[1] = 0 |
|
|
hitNum[1] = 0 |
|
@@ -710,20 +710,27 @@ function love.update(dt) |
|
|
if globalState == "menu" then |
|
|
if globalState == "menu" then |
|
|
debugCheck(dt) |
|
|
debugCheck(dt) |
|
|
end |
|
|
end |
|
|
if ts > updaterate then |
|
|
|
|
|
|
|
|
|
|
|
if globalState == "nettest" then |
|
|
if globalState == "nettest" then |
|
|
basegame(dt) |
|
|
basegame(dt) |
|
|
nettest(dt) |
|
|
|
|
|
|
|
|
if ts > updaterate then |
|
|
|
|
|
nettest(dt) |
|
|
|
|
|
ts = ts - updaterate |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
end |
|
|
end |
|
|
if globalState == "clienttest" then |
|
|
if globalState == "clienttest" then |
|
|
if confirmation ~= "disconnected" then |
|
|
if confirmation ~= "disconnected" then |
|
|
lastSentKeyP1 = lastSentKeyClient |
|
|
lastSentKeyP1 = lastSentKeyClient |
|
|
clientsBaseGame(dt) |
|
|
clientsBaseGame(dt) |
|
|
end |
|
|
end |
|
|
|
|
|
if ts > updaterate then |
|
|
clienttest(dt) |
|
|
clienttest(dt) |
|
|
|
|
|
ts = ts - updaterate |
|
|
|
|
|
end |
|
|
end |
|
|
end |
|
|
ts = ts - updaterate |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
end |
|
|
serverinit = false |
|
|
serverinit = false |
|
|
clientinit = false |
|
|
clientinit = false |
|
|