Example #1
0
 public SinglePlayerGame(Settings settings)
 {
     playerOneField = new Playfield(GameType.Time, new Vector2(500f, 325f), settings.PlayfieldSize);
     backgroundImage = new Image();
     pauseImage = new Image();
     startText = new Text();
     timer = new Text();
 }
Example #2
0
 public SplitScreenGame(Settings settings)
 {
     playerOneField = new Playfield(settings.GameType, new Vector2(780f, 325f), settings.PlayfieldSize);
     playerTwoField = new Playfield(settings.GameType, new Vector2(300f, 325f), settings.PlayfieldSize);
     backgroundImage = new Image();
     pauseImage = new Image();
     timer = new Text();
 }
Example #3
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];
 }