MCPcopy Create free account
hub / github.com/ActiveState/code / build_boids

Function build_boids

recipes/Python/502240_Boids_Version_11/recipe-502240.py:84–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 boid.velocity /= boid.velocity.mag() / SPEED_LIMIT
83
84def build_boids():
85 # Create boids variable.
86 global boids
87 boids = tuple(Boid(WIDTH, HEIGHT, OFFSET_START, FRAMES_PER_SEC) for boid in xrange(BOIDS))
88
89################################################################################
90

Callers 1

initialiseFunction · 0.70

Calls 2

xrangeClass · 0.85
BoidClass · 0.70

Tested by

no test coverage detected