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
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
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
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