Example #1
0
 public NetworkGame(Settings settings, NetPeer peer)
 {
     this.settings = settings;
     this.peer = peer;
     localPlayerField = new Playfield(settings.GameType, new Vector2(780f, 325f), settings.PlayfieldSize);
     remotePlayerField = new RemotePlayfield(settings.GameType, new Vector2(300f, 325f), settings.PlayfieldSize);
     xDiff = localPlayerField.Position.X - remotePlayerField.Position.X;
     backgroundImage = new Image();
     pauseImage = new Image();
     timeText = new Text();
     countdownText = new OutlineText();
     if (peer.ConnectionsCount == 0)
         NewScreen(new NetworkGameSetup(), "No Connection");
     else
         connection = peer.Connections.ToArray()[0];
 }
Example #2
0
 public TextButton()
 {
     buttonText = new OutlineText();
 }