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

Method __init__

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

Source from the content-addressed store, hash-verified

219
220class BrickWall(pygame.sprite.Group):
221 def __init__(self, screen, x, y, width, height):
222 self.__screen = screen
223 self._x = x
224 self._y = y
225 self._width = width
226 self._height = height
227 self._bricks = []
228
229 X = x
230 Y = y
231 for i in range(3):
232 for j in range(4):
233 self._bricks.append(Brick(screen, width, height, X, Y))
234 X += width + (width / 7.0)
235 Y += height + (height / 7.0)
236 X = x
237
238 def add(self, brick):
239 """

Callers

nothing calls this directly

Calls 2

BrickClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected