Example #1
0
        protected override void Initialize()
        {
            Engine.Initialize(this, graphics);
            MyGame.Initialize();

            base.Initialize();
        }
Example #2
0
        public AnGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Registration.Initialize();

            var manager = GameFactory.Resolve();

            MyGame.Construct(manager);
        }
Example #3
0
        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);
        }
Example #4
0
        public AnGame()
        {
            graphics = new GraphicsDeviceManager(this)
            {
                SupportedOrientations = DisplayOrientation.LandscapeLeft
            };
            Registration.Initialize();

            var manager = GameFactory.Resolve();

            MyGame.Construct(manager);
        }
Example #5
0
        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();
        }
Example #6
0
 protected override void OnExiting(object sender, EventArgs args)
 {
     MyGame.OnExiting();
     base.OnExiting(sender, args);
 }
Example #7
0
 protected override void OnDeactivated(object sender, EventArgs args)
 {
     MyGame.OnDeactivated();
     base.OnDeactivated(sender, args);
 }
Example #8
0
 protected override void Draw(GameTime gameTime)
 {
     MyGame.Draw();
     base.Draw(gameTime);
 }
Example #9
0
 protected override void Update(GameTime gameTime)
 {
     MyGame.Update(gameTime);
     base.Update(gameTime);
 }
Example #10
0
 protected override void UnloadContent()
 {
     MyGame.UnloadContent();
     base.UnloadContent();
 }
Example #11
0
 protected override void LoadContent()
 {
     MyGame.LoadContent();
     base.LoadContent();
 }