Esempio n. 1
0
    def _draw(self):
        """Draw the scroll.

        1. Draw the background and the sprites on the drawable image.  That's
           what Window._draw() does.
        2. Draw a part of the drawable image on the visible one.

        """
        WindowSprite._draw(self)
        self._drawVisiblePart()
Esempio n. 2
0
 def __init__(self):
     """Initialize a new ScrollSprite."""
     WindowSprite.__init__(self)
     self.big_image = None
     self.big_rect = pygame.Rect(0, 0, 0, 0)
     self.visible_rect = pygame.Rect(0, 0, 0, 0)