def icon(cls, size):
        """Returns an icon to use for the game."""
        tile = pygame.Surface((size, size))
        tile.fill((237, 194, 46))
        label = load_font(cls.BOLD_NAME, int(size / 3.2)).render(cls.NAME, True, (249, 246, 242))
        width, height = label.get_size()
        tile.blit(label, ((size - width) / 2, (size - height) / 2))
        return tile
def icon ( cls , size ) : tile = pygame . Surface ( ( size , size ) ) tile . fill ( ( 237 , 194 , 46 ) ) label = load_font ( cls . BOLD_NAME , int ( size / 3.2 ) ) . render ( cls . NAME , True , ( 249 , 246 , 242 ) ) width , height = label . get_size ( ) tile . blit ( label , ( ( size - width ) / 2 , ( size - height ) / 2 ) ) return tile
Returns an icon to use for the game.