コード例 #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
コード例 #2
0
ファイル: graphics.py プロジェクト: siht/tiled_v0.0.2
 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
コード例 #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
コード例 #4
0
ファイル: graphics.py プロジェクト: siht/tiled_v0.0.2
 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