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

Method __init__

brickout-game/brickout-game.py:42–51  ·  view source on GitHub ↗
(self, screen, radius, x, y)

Source from the content-addressed store, hash-verified

40
41class Ball(object):
42 def __init__(self, screen, radius, x, y):
43 self.__screen = screen
44 self._radius = radius
45 self._xLoc = x
46 self._yLoc = y
47 self.__xVel = 7
48 self.__yVel = 2
49 w, h = pygame.display.get_surface().get_size()
50 self.__width = w
51 self.__height = h
52
53 def getXVel(self):
54 return self.__xVel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected