mirror of
https://github.com/LDDestroier/CC/
synced 2025-03-13 15:08:09 +00:00
Update tron
This commit is contained in:
parent
331743820f
commit
4f62c96dcc
6
tron
6
tron
@ -682,9 +682,6 @@ local setDirection = function(keylist, p, checkDir)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- to counter P2's ability to turn twice in one tick
|
|
||||||
local dlDirection
|
|
||||||
|
|
||||||
local game = function()
|
local game = function()
|
||||||
local outcome
|
local outcome
|
||||||
local p, np
|
local p, np
|
||||||
@ -696,7 +693,7 @@ local game = function()
|
|||||||
setDirection(keysDown, p)
|
setDirection(keysDown, p)
|
||||||
setDirection(netKeysDown, np)
|
setDirection(netKeysDown, np)
|
||||||
else
|
else
|
||||||
setDirection(keysDown, p, dlDirection)
|
setDirection(keysDown, p)
|
||||||
end
|
end
|
||||||
|
|
||||||
if keysDown[control.lookLeft] then
|
if keysDown[control.lookLeft] then
|
||||||
@ -766,7 +763,6 @@ local networking = function()
|
|||||||
elseif msg.gameID == gamename then
|
elseif msg.gameID == gamename then
|
||||||
if not isHost then
|
if not isHost then
|
||||||
player = msg.player
|
player = msg.player
|
||||||
dlDirection = player[you].direction
|
|
||||||
trail = msg.trail
|
trail = msg.trail
|
||||||
deadGuys = msg.deadGuys
|
deadGuys = msg.deadGuys
|
||||||
elseif type(msg.keysDown) == "table" then
|
elseif type(msg.keysDown) == "table" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user