玩家死亡后不再占用更新和绘制资源
框架跟进
This commit is contained in:
Submodule Zframework updated: 4a3433ac94...4aa87c6147
@@ -613,6 +613,7 @@ do-- function Player:dropPosition(x,y,size)
|
|||||||
vy=vy+.0626
|
vy=vy+.0626
|
||||||
self:setPosition(x,y,size)
|
self:setPosition(x,y,size)
|
||||||
if y>2600 then
|
if y>2600 then
|
||||||
|
table.remove(PLAYERS,TABLE.find(PLAYERS,self))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user