Example #1
0
        protected override void Initialize()
        {
            // initialiserar managers som är statics.
            ImageManager.Initialize(graphics.GraphicsDevice);
            EntityManager.Initialize();
            CreationManager.Initialize();


            Tools.Debugging.isDebugging = true;

            base.Initialize();
        }
Example #2
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }


            EntityManager.Update(gameTime);

            CreationManager.Update(gameTime);



            base.Update(gameTime);
        }