public override void Draw(GameTime time) { sb.Begin(); sb.Draw(space, new Rectangle(0, spacePos, space.Width, space.Height), Color.White); sb.Draw(space, new Rectangle(0, spacePos - 768, space.Width, space.Height), Color.White); sb.End(); CenterCamera(); stage.Draw(camera); drawComps.Sort(); stage.batch.Begin(); drawComps.ForEach((d) => { d.Draw(camera); }); stage.batch.End(); stage.DrawTopLayer(camera); hud.Draw(sb); //ending if (endingTime > 0.0f) { switch (ending) { case EndScreen.Ending.Bathroom: sb.Begin(); sb.Draw(blackHole, blackHolePos, null, Color.White, blackHoleRotate, blackHoleOrigin, blackHoleScale, SpriteEffects.None, 0.0f); sb.End(); break; case EndScreen.Ending.Dubstep: if (whiteTime % 0.2f > 0.1f) { game.GraphicsDevice.Clear(Color.White); } break; } } }