Пример #1
0
 protected override void Initialize()
 {
     DrawingHelper.Initialize(GraphicsDevice);
     CONTENT_MANAGER.spriteBatch  = new SpriteBatch(GraphicsDevice);
     CONTENT_MANAGER.GameInstance = this;
     Primitive2DActionGenerator.CreateThePixel(CONTENT_MANAGER.spriteBatch);
     base.Initialize();
 }
        protected override void Initialize()
        {
            CONTENT_MANAGER.LocalRootPath = Path.GetDirectoryName(Assembly.GetAssembly(typeof(Program)).Location);
            DrawingHelper.Initialize(GraphicsDevice);
            CONTENT_MANAGER.spriteBatch       = new SpriteBatch(GraphicsDevice);
            CONTENT_MANAGER.gameInstance      = this;
            CONTENT_MANAGER.CurrentInputState = new InputState(Mouse.GetState(), Keyboard.GetState());

            Primitive2DActionGenerator.CreateThePixel(CONTENT_MANAGER.spriteBatch);

            base.Initialize();
        }