1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-01-31 11:19:11 +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.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)))
end end
if getTrail(p.x, p.y) or doesIntersectBorder(p.x, p.y) then
p.dead = true
deadGuys[i] = true
end
end end
if isHost then if isHost then
if p.putTrail then if p.putTrail then
@ -666,6 +662,13 @@ local moveTick = function(doSend)
end end
end 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() ageTrails()
return deadAnimation(doSend) return deadAnimation(doSend)
end end