public void Draw() { _batch.Begin(); foreach (var message in Messages) { _batch.DrawString(_font, message.Text, message.Location, Color.Red); } _batch.End(); }
public void Draw() { _batch.Begin(); var color = new Color(Color.ForestGreen, 0.5f); _batch.Draw(_clouds, _screenSize, null, color, 0f, Vector2.Zero, SpriteEffects.None, 1f); _batch.End(); var transform = _batch.Helper.ActiveCamera.GetTransform() * Matrix.CreateRotationZ(.1f); _batch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, transform); foreach (var streak in _streaks) { _batch.Draw(_streak, streak.Step(), streak.Color); streak.Loop(_screenSize); } _batch.End(); }