コード例 #1
0
 public void FftProperty()
 {
     using (var gameController = new GtGameController(
                Factory,
                new GtFileLoader(),
                new SongPlayerDoNothing(),
                new AudioEffectsDoNothing()))
     {
         Assert.IsNotNull(gameController.AudioListener.FftData);
     }
 }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: XnaGame.cs プロジェクト: queer1/guitarmonics
        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";
        }