mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-19 05:32:51 +00:00
Update tron
This commit is contained in:
parent
38c649bc20
commit
03d0d83b62
11
tron
11
tron
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user