@staticmethod
def init(character):
    images = []
    path = ('images/%s/ordered images' % character)
    maxDim = 70
    for imageName in os.listdir(path):
        maxDim = 70
        image = pygame.image.load(((path + os.sep) + imageName))
        if ('effect' in imageName):
            if ((character == 'goku') or (character == 'raizen') or (character == 'naruto') or (character == 'sasuke')):
                maxDim = 120
            else:
                maxDim = 70
            (w, h) = image.get_size()
            factor = 1
            if (w != maxDim):
                factor = (maxDim / w)
            if (h != maxDim):
                factor = (maxDim / h)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        elif ('jump' in imageName):
            (w, h) = image.get_size()
            factor = 1
            if (w != Character.maxWidth):
                factor = (Character.maxWidth / w)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        else:
            (w, h) = image.get_size()
            factor = 1
            if (w != Character.maxWidth):
                factor = (Character.maxWidth / w)
            if (h != Character.maxHeight):
                factor = (Character.maxHeight / h)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        images.append(image)
    Character.charactersDict[character] = Character.charactersDict.get(character, images)
@staticmethod
def init(character):
    images = []
    path = ('images/%s/ordered images' % character)
    maxDim = 70
    for imageName in os.listdir(path):
        maxDim = 70
        image = pygame.image.load(((path + os.sep) + imageName))
        if ('effect' in imageName):
            if ((character == 'goku') or (character == 'raizen') or (character == 'naruto') or (character == 'sasuke')):
                maxDim = 120
            else:
                maxDim = 70
            (w, h) = image.get_size()
            factor = 1
            if (w != maxDim):
                factor = (maxDim / w)
            if (h != maxDim):
                factor = (maxDim / h)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        elif ('jump' in imageName):
            (w, h) = image.get_size()
            factor = 1
            if (w != Character.maxWidth):
                factor = (Character.maxWidth / w)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        else:
            (w, h) = image.get_size()
            factor = 1
            if (w != Character.maxWidth):
                factor = (Character.maxWidth / w)
            if (h != Character.maxHeight):
                factor = (Character.maxHeight / h)
            image = pygame.transform.scale(image, (int((w * factor)), int((h * factor))))
        images.append(image)
    Character.charactersDict[character] = Character.charactersDict.get(character, images)