public override void Draw(GameTime gameTime)
{
GameRef.SpriteBatch.Begin(
SpriteSortMode.Deferred,
BlendState.AlphaBlend,
SamplerState.PointClamp,
null,
null,
null,
player.Camera.Transformation);
map.Draw(GameRef.SpriteBatch, player.Camera);
sprite.Draw(gameTime, GameRef.SpriteBatch, player.Camera);
hud.Draw(gameTime);
base.Draw(gameTime);
GameRef.SpriteBatch.End();
}
I found out that I was constantly drawing the spritefont every frame.
Is there anyway I can work around this? Just like what I did with my status bars.
Or is there an alternative to using Camera Transformation for my positions?