Přidány základy generování mapy (zatím pouze server-side, bez zrcadlení do clienta)
This commit is contained in:
parent
8a3267cc4b
commit
8801a7c919
6 changed files with 100 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ public class Server {
|
|||
};
|
||||
|
||||
server.Start(port);
|
||||
|
||||
|
||||
Run();
|
||||
}
|
||||
|
||||
|
|
@ -115,6 +115,9 @@ public class Server {
|
|||
else{
|
||||
P2 = newPlayer;
|
||||
}
|
||||
|
||||
GameLogic.Init(); // TODO: implement a way to start the game once both players join
|
||||
|
||||
}
|
||||
|
||||
public static void OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue