public override void Initialize() { game = new BasketKing.Game(); game.Initialize(this); this.Window.AddFlags(WindowManagerFlags.KeepScreenOn); }
public override void Initialize() { this.game = new BasketKing.Game(); this.game.Initialize(this); #region WAVE SOFTWARE LICENSE AGREEMENT this.backgroundSplashColor = new Color("#ebebeb"); this.spriteBatch = new SpriteBatch(WaveServices.GraphicsDevice); var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); string name = string.Empty; foreach (string item in resourceNames) { if (item.Contains("SplashScreen.wpk")) { name = item; break; } } if (string.IsNullOrWhiteSpace(name)) { throw new InvalidProgramException("License terms not agreed."); } using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(name)) { this.splashScreen = WaveServices.Assets.Global.LoadAsset <Texture2D>(name, stream); } #endregion }
public override void Initialize() { this.game = new BasketKing.Game(); this.game.Initialize(this); #region WAVE SOFTWARE LICENSE AGREEMENT this.backgroundSplashColor = new Color("#ebebeb"); this.spriteBatch = new SpriteBatch(WaveServices.GraphicsDevice); var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); string name = string.Empty; foreach (string item in resourceNames) { if (item.Contains("SplashScreen.wpk")) { name = item; break; } } if (string.IsNullOrWhiteSpace(name)) { throw new InvalidProgramException("License terms not agreed."); } using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(name)) { this.splashScreen = WaveServices.Assets.Global.LoadAsset<Texture2D>(name, stream); } #endregion }
public override void Initialize() { base.Initialize(); // Initialize game = new BasketKing.Game(); game.Initialize(this); }
public override void Initialize() { base.Initialize(); this.Adapter.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight; game = new BasketKing.Game(); game.Initialize(this); }