Esempio n. 1
0
 def test_blit(self, frame, tile_bitmap):
     """image drawn into frame, then cleared."""
     dest = Rect(32, 16, 32, 32)
     source = Rect(0, 0, 32, 32)
     frame.blit(tile_bitmap, dest, source)
     next_frame()
     frame.clear()
Esempio n. 2
0
 def test_blit(self):
     """image drawn into frame, then cleared."""
     bitmap = image.load(TILE).convert()
     dest = Rect(32, 16, 32, 32)
     source = Rect(0, 0, 32, 32)
     self.frame.blit(bitmap, dest, source)
     next_frame()
     self.frame.clear()
Esempio n. 3
0
 def test_blit(self, tile_bitmap):
     """quadratic image is shown, then cleared."""
     screen = Screen()
     dest = pygame.Rect(60, 60, 32, 32)
     source = pygame.Rect(0, 0, 32, 32)
     screen.blit(tile_bitmap, dest, source)
     next_frame()
     screen.clear()
Esempio n. 4
0
 def test_blit(self):
     """quadratic image is shown, then cleared."""
     screen = Screen(RESOLUTION, BACKGROUND_IMAGE)
     bitmap = pygame.image.load(TILE).convert()
     dest = pygame.Rect(60, 60, 32, 32)
     source = pygame.Rect(0, 0, 32, 32)
     screen.blit(bitmap, dest, source)
     next_frame()
     screen.clear()
Esempio n. 5
0
 def test_text(self, frame):
     """Text drawn into frame, then cleared."""
     frame.print_text('Hello Frame', (50, 50), config.DEMIBOLD_BIG,
                      config.CYAN)
     next_frame()
     frame.clear()
Esempio n. 6
0
 def test_text(self):
     """Text drawn into frame, then cleared."""
     self.frame.print_text('Hello Frame', Vector(50,50), \
         DEMIBOLD_BIG, CYAN )
     next_frame()
     self.frame.clear()