def __init__(self, y, height, board): focus = Point(FLOOR - height, y) dimensions = Dimension(height, 7) pipe = IDENTIFIER['pipe'] spring = IDENTIFIER['spring'] shape = [[pipe, pipe, spring, spring, spring, pipe, pipe]] * height Obstacle.__init__(self, focus, shape, dimensions, board)
def __init__(self, y, board): dimensions = Dimension(15, 30) focus = Point(FLOOR - dimensions.length, y) shape = CASTLE_SHAPE Obstacle.__init__(self, focus, shape, dimensions, board) self.draw()