联网对战(初版,不可用)
This commit is contained in:
16
parts/modes/netBattle.lua
Normal file
16
parts/modes/netBattle.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
return{
|
||||
color=COLOR.white,
|
||||
env={
|
||||
--TODO: ?
|
||||
},
|
||||
load=function(playerData)
|
||||
PLY.newPlayer(1)
|
||||
local N=2
|
||||
for i=1,#playerData do
|
||||
if playerData[i].id~=USER.id then
|
||||
PLY.newRemotePlayer(N,false,playerData[i])
|
||||
N=N+1
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user