Exemple #1
0
 public Interface(Game game, FPSCounter fpsCounter=null)
     : base(game)
 {
     _game = game;
     _fpsCounter = fpsCounter;
     //_map = map;
 }
Exemple #2
0
        /// <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()
        {
            FPSCounter fpsCounter = new FPSCounter(this);
            Components.Add(fpsCounter);
            GameMap gameMap=new GameMap(this);
            Components.Add(gameMap);
            Components.Add(new Interface(this,fpsCounter));

            base.Initialize();
        }