fix
This commit is contained in:
@@ -27,7 +27,7 @@ speed = 10
|
||||
|
||||
c_r = 25
|
||||
c_x = random.randint(c_r, width - c_r)
|
||||
c_x = random.randint(c_r, height - c_r)
|
||||
c_y = random.randint(c_r, height - c_r)
|
||||
c_visible = True
|
||||
time = 0
|
||||
|
||||
@@ -84,6 +84,11 @@ while running:
|
||||
screen.fill(white)
|
||||
draw.rect(screen, blue, p1)
|
||||
draw.rect(screen, green, p2)
|
||||
|
||||
if c_visible:
|
||||
draw.circle(screen, red, (c_x, c_y), c_r)
|
||||
|
||||
|
||||
display.flip()
|
||||
clock.tick(60)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user