/// <summary> /// Constructor. /// </summary> public GameplayScreen() { TransitionOnTime = TimeSpan.FromSeconds(1.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); Accelerometer.Initialize(); }
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(); }
public PlatformerGame() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; #if WINDOWS_PHONE graphics.IsFullScreen = true; TargetElapsedTime = TimeSpan.FromTicks(333333); #endif Accelerometer.Initialize(); }
// *********************************************************************************** #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 { } }
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(); }