/// <summary> /// Render the gameplay screen. /// </summary> /// <param name="gameTime"></param> public override void Draw(GameTime gameTime) { spriteBatch.DrawLine(HorizontalBoundaryStart, HorizontalBoundaryEnd, ColourHelpers.PureGreen, 2); if (!isGameover) { EnemyGroup.Draw(spriteBatch); UfoController.Draw(spriteBatch); ProjectileController.Draw(spriteBatch); } Player.Draw(spriteBatch); BarrierGroup.Draw(spriteBatch); DrawUI(); DrawGameoverUI(); }