Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime)
        {
            Vector2     center = new Vector2(ScreenManager.Game.RenderWidth, ScreenManager.Game.RenderHeight) / 2f;
            SpriteBatch sb     = ScreenManager.SpriteBatch;

            ScreenManager.Game.GraphicsDevice.Clear(new Color(75, 75, 75));

            sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, camera.CameraMatrix);
            map.DrawLayer(sb, "bg", camera);
            map.DrawLayer(sb, "fg", camera);
            sb.End();



            heroPool.Draw(sb, camera);

            rotBoxPool.Draw(sb, camera);

            particleController.Draw(ScreenManager.SpriteBatch, camera, 1);

            sb.Begin(SpriteSortMode.Deferred, null, null, null, null);
            sb.DrawString(ScreenManager.Font, "LD ENGINE", new Vector2(50, 20) + Vector2.One, Color.Black, 0f, ScreenManager.Font.MeasureString("LD ENGINE") / 2f, textScale, SpriteEffects.None, 1);
            sb.DrawString(ScreenManager.Font, "LD ENGINE", new Vector2(50, 20), Color.White, 0f, ScreenManager.Font.MeasureString("LD ENGINE") / 2f, textScale, SpriteEffects.None, 1);

            sb.End();



            ScreenManager.FadeBackBufferToBlack(1f - TransitionAlpha);

            base.Draw(gameTime);
        }