コード例 #1
0
        protected override void Initialize()
        {
            Engine.Initialize(this, graphics);
            MyGame.Initialize();

            base.Initialize();
        }
コード例 #2
0
        public AnGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Registration.Initialize();

            var manager = GameFactory.Resolve();

            MyGame.Construct(manager);
        }
コード例 #3
0
ファイル: AnGame.cs プロジェクト: SteveProXNA/SimpsonsTrivia
        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);
        }
コード例 #4
0
        public AnGame()
        {
            graphics = new GraphicsDeviceManager(this)
            {
                SupportedOrientations = DisplayOrientation.LandscapeLeft
            };
            Registration.Initialize();

            var manager = GameFactory.Resolve();

            MyGame.Construct(manager);
        }
コード例 #5
0
ファイル: AnGame.cs プロジェクト: StevePro7/Platformer
        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();
        }
コード例 #6
0
 protected override void OnExiting(object sender, EventArgs args)
 {
     MyGame.OnExiting();
     base.OnExiting(sender, args);
 }
コード例 #7
0
 protected override void OnDeactivated(object sender, EventArgs args)
 {
     MyGame.OnDeactivated();
     base.OnDeactivated(sender, args);
 }
コード例 #8
0
 protected override void Draw(GameTime gameTime)
 {
     MyGame.Draw();
     base.Draw(gameTime);
 }
コード例 #9
0
 protected override void Update(GameTime gameTime)
 {
     MyGame.Update(gameTime);
     base.Update(gameTime);
 }
コード例 #10
0
 protected override void UnloadContent()
 {
     MyGame.UnloadContent();
     base.UnloadContent();
 }
コード例 #11
0
 protected override void LoadContent()
 {
     MyGame.LoadContent();
     base.LoadContent();
 }