Exemplo n.º 1
0
    def __init__(self, position):
        surface.Surface.__init__(self, position + TeamSurface.SIZE)
        self.img_props = images.load_props()
        self.imgs = images.load_pix()

        self.font = pygame.font.Font(paths.get_font('font.ttf'), 12)
        self.font2 = pygame.font.Font(paths.get_font('font.ttf'), 10)
Exemplo n.º 2
0
    def __init__(self, position, detail):
        self.img_props = imgp = images.load_props()

        vshift = imgp['vshift']
        tile_size = imgp['tile_size']
        size = (TAILLE_TERRAIN * tile_size[0],
                vshift + TAILLE_TERRAIN * tile_size[1])

        surface.Surface.__init__(self, position + size)
        self.imgs = images.load_pix()
        self.grid_surface = self.get_grid()
        self.detail = detail
        self.detail_pos = None

        self.font = pygame.font.Font(paths.get_font('font.ttf'), 12)
Exemplo n.º 3
0
 def __init__(self, position, width):
     surface.Surface.__init__(self,
                              position + (width, DetailSurface.HEIGHT))
     self.imgs = images.load_pix()
     self.font = pygame.font.Font(paths.get_font('font.ttf'), 12)