コード例 #1
0
 public NetworkDisplayGUI(Game game, StageContentManager content)
     : base(game)
 {
     m_batch = new SpriteBatch(game.GraphicsDevice);
     m_content = content;
     messages = new List<string>();
 }
コード例 #2
0
ファイル: Stage.cs プロジェクト: bigsassy/Maze-Game
        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
        }
コード例 #3
0
ファイル: Game1.cs プロジェクト: bigsassy/Maze-Game
 /// <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();
 }