Esempio n. 1
0
 def test_build_rects(self):
     from pytmx import util_pygame
     rects = util_pygame.build_rects(self.m, "Grass and Water", "tileset",
                                     None)
     self.assertEqual(rects[0], [0, 0, 240, 240])
     rects = util_pygame.build_rects(self.m, "Grass and Water", "tileset",
                                     18)
     self.assertNotEqual(0, len(rects))
Esempio n. 2
0
 def test_build_rects(self):
     from pytmx import util_pygame
     rects = util_pygame.build_rects(self.m, "Grass and Water", "tileset", None)
     self.assertEqual(rects[0], [0, 0, 240, 240])
     rects = util_pygame.build_rects(self.m, "Grass and Water", "tileset", 18)
     self.assertNotEqual(0, len(rects))