Na začátku hry se mapa na serveru synchronizuje s mapou u clienta. Rozšířen spritesheet monitoru o remote dveře. Přidána GlobalClassLib pro kód sdílený mezi clientem a serverem. Základ pro implementaci ovládání remote dveří.

This commit is contained in:
Perry 2026-02-14 14:35:29 +01:00
parent 8801a7c919
commit 7e6b3d724b
25 changed files with 374 additions and 67 deletions

View file

@ -2,6 +2,7 @@ using System;
using System.Collections;
using System.Diagnostics;
using System.Threading;
using FNAF_Server.Map;
using LiteNetLib;
using LiteNetLib.Utils;
using PacketLib;
@ -116,7 +117,11 @@ public class Server {
P2 = newPlayer;
}
GameLogic.Init(); // TODO: implement a way to start the game once both players join
GameLogic.Init(); // TODO: move this to the condition above to wait for the other player
}