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:
parent
3049417914
commit
4484b127c5
8 changed files with 60 additions and 9 deletions
|
|
@ -6,6 +6,8 @@ namespace FNAF_Server;
|
|||
|
||||
public class GameLogic {
|
||||
|
||||
public const int START_CAMERA = 12;
|
||||
|
||||
public static void Init() {
|
||||
// Create map
|
||||
MapManager.InitMap();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue