玩家死亡后不再占用更新和绘制资源

框架跟进
This commit is contained in:
MrZ_26
2023-06-15 01:15:39 +08:00
parent e7fc5a676e
commit 96bf30fcab
2 changed files with 2 additions and 1 deletions

View File

@@ -613,6 +613,7 @@ do-- function Player:dropPosition(x,y,size)
vy=vy+.0626
self:setPosition(x,y,size)
if y>2600 then
table.remove(PLAYERS,TABLE.find(PLAYERS,self))
return true
end
end