Пример #1
0
        public Juego()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            ConjuntoRecursos.Initialize(this);

            // La velocidad de fotogramas predeterminada para Windows Phone es de 30 fps.
            TargetElapsedTime = TimeSpan.FromTicks(333333);

            // Amplía la duración de la batería con bloqueo.
            InactiveSleepTime                  = TimeSpan.FromSeconds(1);
            graphics.IsFullScreen              = true;
            graphics.PreferredBackBufferWidth  = 480;
            graphics.PreferredBackBufferHeight = 800;
            this.graphics.ApplyChanges();
            _pantP = new PantallaPresentacionTiempo(this);
            _pantP._pantallaPresentacionActiva = true;
        }
Пример #2
0
        public Juego()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            ConjuntoRecursos.Initialize(this);

            // La velocidad de fotogramas predeterminada para Windows Phone es de 30 fps.
            TargetElapsedTime = TimeSpan.FromTicks(333333);

            // Amplía la duración de la batería con bloqueo.
            InactiveSleepTime = TimeSpan.FromSeconds(1);
            graphics.IsFullScreen = true;
            graphics.PreferredBackBufferWidth = 480;
            graphics.PreferredBackBufferHeight = 800;
            this.graphics.ApplyChanges();
            _pantP = new PantallaPresentacionTiempo(this);
            _pantP._pantallaPresentacionActiva = true;
        }