コード例 #1
0
ファイル: scrollsprite.py プロジェクト: Niriel/pynguin
    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()
コード例 #2
0
ファイル: scrollsprite.py プロジェクト: Niriel/pynguin
 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)