public NetworkDisplayGUI(Game game, StageContentManager content) : base(game) { m_batch = new SpriteBatch(game.GraphicsDevice); m_content = content; messages = new List<string>(); }
public Stage(Game game, StageContentManager content, NetworkDisplayGUI networkGUI) : base(game) { m_batch = new SpriteBatch(game.GraphicsDevice); m_content = content; m_players = new Dictionary<NetworkGamer, Player>(); Global.networkSession.GamerJoined += networkSession_GamerJoined; Global.networkSession.GamerLeft += networkSession_GamerLeft; m_networkGUI = networkGUI; rand = new Random(50); // Let's make it always the same for now }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { m_content = new StageContentManager(Content, "player", "tileset"); base.Initialize(); }