Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DancePartyGame game = new DancePartyGame())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
        public DancePartyGame()
        {
            _instance = this;
            this.IsMouseVisible = true;
            GraphicsDeviceManager = new GraphicsDeviceManager(this);
            //GraphicsDeviceManager.IsFullScreen = true;
            _gameStateManager = GameStateManager.Instance;
            _fpsTracker = new FPSTracker();

            Content.RootDirectory = "Content";

            // Frame rate is 30 fps by default for Windows Phone.
            #if WINDOWS_PHONE
            TargetElapsedTime = TimeSpan.FromTicks(333333);
            #endif

            // Extend battery life under lock.
            InactiveSleepTime = TimeSpan.FromSeconds(1);
        }