protected override void OnPaint(PaintEventArgs e) { e.Graphics.Clear(Color.Black); if (gameWorld.Tanks.Count <= 0) { // don't draw anything. just black screen return; } DrawingTransformer.TranslateTransformToCenterPlayersView(this.Size.Width, gameWorld.Size, gameController.GetPlayerLocation(), e); DrawWorld(gameWorld, e); base.OnPaint(e); }