Skip to content

Commit 5d4589d

Browse files
authored
- constrain spawn location to window dimensions
1 parent 44c0cff commit 5d4589d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-10-object-oriented_programming_and_pvector/microscopic/microscopic.pyde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ amoebas = []
55
for i in range(8):
66
diameter = random(50, 200)
77
speed = 1000 / (diameter * 50)
8-
x, y = random(800), random(500)
8+
x, y = random(800), random(400)
99
amoebas.append(Amoeba(x, y, diameter, speed, speed))
1010

1111
current = PVector(0.1, -0.2)

0 commit comments

Comments
 (0)