mirror of
https://github.com/LDDestroier/CC/
synced 2025-05-28 17:44:05 +00:00
Update tron
This commit is contained in:
parent
3f379bfcd1
commit
331743820f
4
tron
4
tron
@ -675,8 +675,7 @@ local setDirection = function(keylist, p, checkDir)
|
|||||||
p.direction = 2
|
p.direction = 2
|
||||||
elseif keylist[control.right] and (checkDir or p.direction) ~= 2 then
|
elseif keylist[control.right] and (checkDir or p.direction) ~= 2 then
|
||||||
p.direction = 0
|
p.direction = 0
|
||||||
end
|
elseif keylist[control.up] and (checkDir or p.direction) ~= 1 then
|
||||||
if keylist[control.up] and (checkDir or p.direction) ~= 1 then
|
|
||||||
p.direction = -1
|
p.direction = -1
|
||||||
elseif keylist[control.down] and (checkDir or p.direction) ~= -1 then
|
elseif keylist[control.down] and (checkDir or p.direction) ~= -1 then
|
||||||
p.direction = 1
|
p.direction = 1
|
||||||
@ -693,7 +692,6 @@ local game = function()
|
|||||||
p = player[you]
|
p = player[you]
|
||||||
np = player[nou]
|
np = player[nou]
|
||||||
|
|
||||||
|
|
||||||
if isHost then
|
if isHost then
|
||||||
setDirection(keysDown, p)
|
setDirection(keysDown, p)
|
||||||
setDirection(netKeysDown, np)
|
setDirection(netKeysDown, np)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user