This commit is contained in:
Finn-Luca Ortelbach
2026-03-12 14:48:10 +01:00
parent f13515c9f8
commit 138cb7f8a9
+6 -1
View File
@@ -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)