public override void Draw(GameTime gameTime, SpriteBatch batch) { base.Draw(gameTime, batch); device.Clear(Color.Green); state.Draw(gameTime, batch); log.Draw(gameTime, batch); }
public override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(transformMatrix: camera.GetViewMatrix(), samplerState: SamplerState.PointClamp); mapRenderer.Draw(camera.GetViewMatrix()); foreach (var obj in world.GetGameObjects()) { obj.Draw(spriteBatch); } spriteBatch.End(); spriteBatch.Begin(); GameLog.Draw(spriteBatch); spriteBatch.End(); }