玩家ui场地坐标原点向下移动70单位
This commit is contained in:
@@ -475,28 +475,31 @@ function loadGame(M,ifQuickPlay)
|
||||
end
|
||||
end
|
||||
function resetPlayerPosition()
|
||||
local l=#PLAYERS
|
||||
PLAYERS[1]:setPosition(340,15)
|
||||
if l==2 then
|
||||
PLAYERS[2]:setPosition(965,360,.5)
|
||||
elseif l==49 then
|
||||
local L=PLAYERS.alive
|
||||
L[1]:setPosition(340,75)
|
||||
if #L<=5 then
|
||||
if L[2]then L[2]:setPosition(965,390,.5)end
|
||||
if L[3]then L[3]:setPosition(965,30,.5)end
|
||||
if L[4]then L[4]:setPosition(20,390,.5)end
|
||||
if L[5]then L[5]:setPosition(20,30,.5)end
|
||||
elseif #L==49 then
|
||||
local n=2
|
||||
for i=1,4 do for j=1,6 do
|
||||
PLAYERS[n]:setPosition(78*i-54,115*j-98,.09)
|
||||
L[n]:setPosition(78*i-54,115*j-98,.09)
|
||||
n=n+1
|
||||
end end
|
||||
for i=9,12 do for j=1,6 do
|
||||
PLAYERS[n]:setPosition(78*i+267,115*j-98,.09)
|
||||
L[n]:setPosition(78*i+267,115*j-98,.09)
|
||||
n=n+1
|
||||
end end
|
||||
elseif l==99 then
|
||||
elseif #L==99 then
|
||||
local n=2
|
||||
for i=1,7 do for j=1,7 do
|
||||
PLAYERS[n]:setPosition(46*i-36,97*j-72,.068)
|
||||
L[n]:setPosition(46*i-36,97*j-72,.068)
|
||||
n=n+1
|
||||
end end
|
||||
for i=15,21 do for j=1,7 do
|
||||
PLAYERS[n]:setPosition(46*i+264,97*j-72,.068)
|
||||
L[n]:setPosition(46*i+264,97*j-72,.068)
|
||||
n=n+1
|
||||
end end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user