private void DrawPlayerCamera(GameTime gameTime, Player p) { GameRef.SpriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, p.Camera.GetTransformation()); if (p.IsInvincible) GraphicsDevice.Clear(Color.Red); else { Color randomColor = Color.White;//new Color(Rand.Next(255), Rand.Next(255), Rand.Next(255)); GameRef.SpriteBatch.Draw(_backgroundImage, _backgroundMainRectangle, randomColor); foreach (var bullet in p.GetBullets()) { bullet.Draw(gameTime); } Players[0].Draw(gameTime); Players[1].Draw(gameTime); if (_enemy.IsAlive) { _enemy.Draw(gameTime); } } GameRef.SpriteBatch.End(); }