private void Draw(float delta) { Art.Graphics.ScaleTransform(100, 100); Art.Background(PColor.CornflowerBlue); Art.Stroke(PColor.Black); Art.StrokeWeight(0.2f); Art.NoFill(); var size = (float)Client.Arena.Size; Art.BeginShape(); Art.Vertex(0, 0); Art.Vertex(size, 0); Art.Vertex(size, size); Art.Vertex(0, size); Art.EndShape(EndShapeType.Close); Art.NoStroke(); Client.Arena.Obstacles.ForEach(o => { Art.Fill(PColor.Grey); Art.Circle((float)o.Position.X, (float)o.Position.Y, 0.5f); Art.Fill(PColor.Black); Art.Text(o.ID, (float)o.Position.X, (float)o.Position.Y); }); if (Client.Arena.ClientBot is object) { Art.Fill(PColor.White); Art.Circle((float)Client.Arena.ClientBot.Position.X, (float)Client.Arena.ClientBot.Position.Y, 0.5f); Art.Fill(PColor.Black); Art.Text("BOT\n" + Client.Arena.ClientBot.ID, (float)Client.Arena.ClientBot.Position.X, (float)Client.Arena.ClientBot.Position.Y); } }