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

Method __init__

brickout-game/brickout-game.py:145–154  ·  view source on GitHub ↗
(self, screen, width, height, x, y)

Source from the content-addressed store, hash-verified

143
144class Brick(pygame.sprite.Sprite):
145 def __init__(self, screen, width, height, x, y):
146 self.__screen = screen
147 self._width = width
148 self._height = height
149 self._xLoc = x
150 self._yLoc = y
151 w, h = pygame.display.get_surface().get_size()
152 self.__W = w
153 self.__H = h
154 self.__isInGroup = False
155
156 def draw(self):
157 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected