1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-11-15 06:37:19 +00:00

Update tron

This commit is contained in:
LDDestroier
2018-11-15 01:28:54 -05:00
committed by GitHub
parent 5f92b1fa55
commit 38c649bc20

10
tron
View File

@@ -651,10 +651,6 @@ local moveTick = function(doSend)
for i = 1, #player do for i = 1, #player do
p = player[i] p = player[i]
if not p.dead then if not p.dead then
if (i == you) and (p.x == player[nou].x and p.y == player[nou].y) then
p.dead = true
deadGuys[i] = true
else
if isHost then if isHost then
p.x = p.x + math.floor(math.cos(math.rad(p.direction * 90))) p.x = p.x + math.floor(math.cos(math.rad(p.direction * 90)))
p.y = p.y + math.floor(math.sin(math.rad(p.direction * 90))) p.y = p.y + math.floor(math.sin(math.rad(p.direction * 90)))
@@ -662,14 +658,14 @@ local moveTick = function(doSend)
if getTrail(p.x, p.y) or doesIntersectBorder(p.x, p.y) then if getTrail(p.x, p.y) or doesIntersectBorder(p.x, p.y) then
p.dead = true p.dead = true
deadGuys[i] = true deadGuys[i] = true
elseif isHost then end
end
if isHost then
if p.putTrail then if p.putTrail then
putTrail(p) putTrail(p)
end end
end end
end end
end
end
ageTrails() ageTrails()
return deadAnimation(doSend) return deadAnimation(doSend)
end end