We are about to switch to a new forum software. Until then we have removed the registration on this forum.
okay so this is my code so far:
`diameter = 30`
def setup():
size(800,800)
background(0)
def draw():
global diameter
if diameter <= 100:
ellipse(random(50,750), random(50,750),diameter,diameter)
diameter = diameter + 1
else:
text("game over",100,100,100)
return
I'm trying to make one ellipse appear at a random location on canvas, and grow until it's diameter reaches 100, and then the game over text appears. I realize the ellipses keep spawning because draw() is called 30 times per minute, but I don't know how to change my code so the ellipse appears once only at the random location and grows.
Answers
nevermind y'all I figured it out. I feel sort of dumb for not realizing this earlier. This is what I did
Oh, I've just finished here as well: =P~