Exemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public GameplayScreen()
        {
            TransitionOnTime  = TimeSpan.FromSeconds(1.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);

            Accelerometer.Initialize();
        }
Exemplo n.º 2
0
        public PlatformerGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // Create Krypton
            this.krypton         = new KryptonEngine(this, "KryptonEffect");
            krypton.AmbientColor = new Color(130, 130, 150);

            Accelerometer.Initialize();
        }
Exemplo n.º 3
0
        public PlatformerGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

#if WINDOWS_PHONE
            graphics.IsFullScreen = true;
            TargetElapsedTime     = TimeSpan.FromTicks(333333);
#endif

            Accelerometer.Initialize();
        }
Exemplo n.º 4
0
        // ***********************************************************************************

        #endregion

        #region Initialize

        public PlatformerGame()
        {
            TransitionOnTime  = TimeSpan.FromSeconds(1.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);

#if WINDOWS_PHONE
            graphics.IsFullScreen = true;
            TargetElapsedTime     = TimeSpan.FromTicks(333333);
#endif
            try
            {
                Accelerometer.Initialize();
            }
            catch { }
        }
Exemplo n.º 5
0
        public PlatformerGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

#if WINDOWS_PHONE
            TargetElapsedTime = TimeSpan.FromTicks(333333);
#endif

#if MONOMAC
            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 480;
#else
            graphics.IsFullScreen          = true;
            graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;
#endif
            Accelerometer.Initialize();
        }
        public PlatformerGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            //default screen : 480 x 800
            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 480;
            //graphics.IsFullScreen = true;

#if WINDOWS_PHONE
            graphics.IsFullScreen = true;
            TargetElapsedTime     = TimeSpan.FromTicks(333333);
#endif
            //Initialise input system
            commandManager   = new CommandManager();
            collisionManager = new CollisionManager();

            Accelerometer.Initialize();
        }