Esempio n. 1
0
 def __init__(self, sector, group=None, location=(0, 0)):
     super(SectorSprite, self).__init__(group)
     grounds = SurfaceImage('Tileset- ground.png')
     default_grounds = Surfaces.listSurface(grounds, (13, 8))
     self.images = default_grounds
     self.image = Surfaces.scale(default_grounds[0], (SIZE_TILE, SIZE_TILE))
     self.rect = self.image.get_rect()
     self.rect.topleft = location
     self.topleft = location
     self.sector = sector
Esempio n. 2
0
 def __init__(self, sector, group=None, location=(0,0)):
     super(SectorSprite, self).__init__(group)
     grounds = SurfaceImage('Tileset- ground.png')
     default_grounds = Surfaces.listSurface(grounds, (13, 8))
     self.images = default_grounds
     self.image = Surfaces.scale(default_grounds[0], (SIZE_TILE, SIZE_TILE))
     self.rect = self.image.get_rect()
     self.rect.topleft = location
     self.topleft = location
     self.sector = sector
Esempio n. 3
0
 def __init__(self, sector, group=None, location=(0, 0)):
     super(UmiSector, self).__init__(sector, group, location)
     self.image = self.images[40]
     self.image = Surfaces.scale(self.image, (SIZE_TILE, SIZE_TILE))
     self.rect = self.image.get_rect()
     self.rect.topleft = location
Esempio n. 4
0
 def __init__(self, sector, group=None, location=(0,0)):
     super(UmiSector, self).__init__(sector, group, location)
     self.image = self.images[40]
     self.image = Surfaces.scale(self.image, (SIZE_TILE, SIZE_TILE))
     self.rect = self.image.get_rect()
     self.rect.topleft = location