1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-01-19 05:32:51 +00:00

Update tron

This commit is contained in:
LDDestroier 2018-11-15 01:31:11 -05:00 committed by GitHub
parent 38c649bc20
commit 03d0d83b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
tron
View File

@ -655,10 +655,6 @@ local moveTick = function(doSend)
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)))
end
if getTrail(p.x, p.y) or doesIntersectBorder(p.x, p.y) then
p.dead = true
deadGuys[i] = true
end
end
if isHost then
if p.putTrail then
@ -666,6 +662,13 @@ local moveTick = function(doSend)
end
end
end
for i = 1, #player do
p = player[i]
if getTrail(p.x, p.y) or doesIntersectBorder(p.x, p.y) then
p.dead = true
deadGuys[i] = true
end
end
ageTrails()
return deadAnimation(doSend)
end