MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

PingPong/Ball.py:7–13  ·  view source on GitHub ↗
(self, pos, vel, win, rad, minCoord, maxCoord)

Source from the content-addressed store, hash-verified

5
6class Ball:
7 def __init__(self, pos, vel, win, rad, minCoord, maxCoord):
8 self.pos = pos
9 self.vel = vel
10 self.win = win
11 self.rad = rad
12 self.minCoord = minCoord
13 self.maxCoord = maxCoord
14
15 def drawBall(self):
16 pygame.draw.circle(self.win, (255,) * 3, self.pos, self.rad, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected