Přidán indikátor právě aktivní kamery pro oba hráče. Indikátor protivníka se mění podle toho, jestli má zapnutý monitor.

This commit is contained in:
Perry 2026-02-26 16:24:55 +01:00
parent 3049417914
commit 4484b127c5
8 changed files with 60 additions and 9 deletions

View file

@ -6,6 +6,8 @@ namespace FNAF_Server;
public class GameLogic {
public const int START_CAMERA = 12;
public static void Init() {
// Create map
MapManager.InitMap();

View file

@ -25,7 +25,7 @@ public class Server {
private static NetPacketProcessor processor;
private static bool isRunning;
public static void Start(int port) {
writer = new NetDataWriter();
processor = new NetPacketProcessor();
@ -102,7 +102,7 @@ public class Server {
peer = peer,
state = new PlayerState {
pid = peer.Id,
camera = 0,
camera = GameLogic.START_CAMERA,
doorStates = [false, false, false]
},
username = packet.username