Ejemplo n.º 1
0
 def __init__(self, tile, topleft=None, rect=None):
    sprite.Sprite.__init__(self)
    self.image = load_tile(tile)
    self.rect = None
    if rect is not None:
       self.rect = rect
    elif topleft is not None:
       self.rect = Rect(topleft, self.image.get_rect().size)
    else:
       print "Wall needs a location. Provide one"
       raise SystemExit
Ejemplo n.º 2
0
 def __init__(self, background):
     self.background = load_tile(background)
     self._shouldFillBackground = True