Esempio n. 1
0
 public void FftProperty()
 {
     using (var gameController = new GtGameController(
                Factory,
                new GtFileLoader(),
                new SongPlayerDoNothing(),
                new AudioEffectsDoNothing()))
     {
         Assert.IsNotNull(gameController.AudioListener.FftData);
     }
 }
Esempio n. 2
0
        public void AudioEffectsProperty()
        {
            var audioEffects = new AudioEffectsDoNothing();


            using (var gameController = new GtGameController(
                       Factory,
                       new GtFileLoader(),
                       new SongPlayerDoNothing(),
                       audioEffects))
            {
                Assert.AreSame(audioEffects, gameController.AudioEffects);
            }
        }
Esempio n. 3
0
        public XnaGame(GtGameController pGameController)
        {
            this.Window.Title = "Guitarmonics";

            this.IsFixedTimeStep = true;

            this.GameController = pGameController;

            this.fUser1ActionListener = new GtUserActionsListener();

            GraphicsDeviceManager = new GraphicsDeviceManager(this);

            GraphicsDeviceManager.PreferredBackBufferWidth  = this.Width;
            GraphicsDeviceManager.PreferredBackBufferHeight = this.Height;

            GraphicsDeviceManager.IsFullScreen = true;

            if (!GraphicsDeviceManager.IsFullScreen)
            {
                GraphicsDeviceManager.ApplyChanges();
            }

            Content.RootDirectory = "Content";
        }