protected override void Initialize() { Engine.Initialize(this, graphics); MyGame.Initialize(); base.Initialize(); }
public AnGame() { graphics = new GraphicsDeviceManager(this); Registration.Initialize(); var manager = GameFactory.Resolve(); MyGame.Construct(manager); }
public AnGame() { graphics = new GraphicsDeviceManager(this); #if WINDOWS_PHONE_APP graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight; #endif Registration.Initialize(); var manager = GameFactory.Resolve(); MyGame.Construct(manager); }
public AnGame() { graphics = new GraphicsDeviceManager(this) { SupportedOrientations = DisplayOrientation.LandscapeLeft }; Registration.Initialize(); var manager = GameFactory.Resolve(); MyGame.Construct(manager); }
protected override void Initialize() { Engine.Initialize(this, graphics); var gameTypeName = System.Configuration.ConfigurationManager.AppSettings["GameType"]; GameType gameType = (GameType)Enum.Parse(typeof(GameType), gameTypeName, true); UInt16 screenWide = (UInt16)(Constants.ScreenWide * (UInt16)gameType); UInt16 screenHigh = (UInt16)(Constants.ScreenHigh * (UInt16)gameType); MyGame.Initialize(gameType, screenWide, screenHigh); base.Initialize(); }
protected override void OnExiting(object sender, EventArgs args) { MyGame.OnExiting(); base.OnExiting(sender, args); }
protected override void OnDeactivated(object sender, EventArgs args) { MyGame.OnDeactivated(); base.OnDeactivated(sender, args); }
protected override void Draw(GameTime gameTime) { MyGame.Draw(); base.Draw(gameTime); }
protected override void Update(GameTime gameTime) { MyGame.Update(gameTime); base.Update(gameTime); }
protected override void UnloadContent() { MyGame.UnloadContent(); base.UnloadContent(); }
protected override void LoadContent() { MyGame.LoadContent(); base.LoadContent(); }