Bola que se para si se choca con otra python terminar

 def setup():

    size(600, 400)

    

    global x1, y1, vx1, vy1, r1, x2, y2, vx2, vy2, r2, c1, c2


    r1 = 30

    r2 = 40


    x1 = random(r1, width - r1)

    y1 = random(r1, height - r1)

    vx1 = random(2, 5)

    vy1 = random(2, 5)


    x2 = random(r2, width - r2)

    y2 = random(r2, height - r2)

    vx2 = random(2, 5)

    vy2 = random(2, 5)


    c2 = color(100, 100, 255)


Comentarios

Entradas populares de este blog

5)Peligros de red

Coches que se chocan con una bola