<commit_before>#-*- coding: utf-8 -*-
import pygame

from ennemi      import Ennemi
from lib.sprites import Sprites
from armes.arme1 import Arme1

class Boss(Ennemi):

    sprites = Sprites('img/p2_spritesheet.png')

    arme = Arme1()

    vie = 80

    '''
    construireSprites
    '''
    def contruireSprites(self) :

        #images mouvement
        images = [
            [(0, 0), (70, 94)],
            [(71, 0), (70, 94)],
            [(142, 0), (70, 94)],
            [(0, 95), (70, 94)],
            [(71, 95), (70, 94)],
            [(142, 95), (70, 94)],
            [(213, 0), (70, 94)],
            [(284, 0), (70, 94)],
            [(213, 95), (70, 94)],
            [(355, 0), (70, 94)],
            [(284, 95), (70, 94)],
        ]
        
        self.framesDroites = self.sprites.sprites(images)
        #self.sizeFD = self.framesDroitesPetites.get_size() Idee : recuperer taille et mult par ce qu'on veut
        #self.framesDroites = pygame.transform.scale(self.image, (int(self.size[0]*2), int(self.size[1]*2)))  
        self.framesGauches = self.sprites.sprites(images, flipX = True)

        self.image = self.imageRepos = self.sprites.sprite((0, 190), (66, 92))

        self.imageAccroupi = [
            self.sprites.sprite((355, 95), (67, 72)),
            self.sprites.sprite((355, 95), (67, 72), flipX = True)
        ]<commit_msg>Ajout scale sans bug<commit_after>#-*- coding: utf-8 -*-
import pygame

from ennemi      import Ennemi
from lib.sprites import Sprites
from armes.arme1 import Arme1

class Boss(Ennemi):

    sprites = Sprites('img/p2_spritesheet.png')

    arme = Arme1()

    vie = 80

    '''
    construireSprites
    '''
    def contruireSprites(self) :

        #images mouvement
        images = [
            [(0, 0), (70, 94)],
            [(71, 0), (70, 94)],
            [(142, 0), (70, 94)],
            [(0, 95), (70, 94)],
            [(71, 95), (70, 94)],
            [(142, 95), (70, 94)],
            [(213, 0), (70, 94)],
            [(284, 0), (70, 94)],
            [(213, 95), (70, 94)],
            [(355, 0), (70, 94)],
            [(284, 95), (70, 94)],
        ]

        # Idee : recuperer taille et mult par ce qu'on veut, ici par 2
        j = 0

        self.framesDroitesNonDim = self.sprites.sprites(images)
        self.framesDroites = []
        for i in self.framesDroitesNonDim :
            tailleFD = self.framesDroitesNonDim[j].get_size()
            redim = pygame.transform.scale(self.framesDroitesNonDim[j], (tailleFD[0]*2, tailleFD[1]*2))
            self.framesDroites.append(redim)
            j = j+1

        j = 0

        self.framesGauchesNonDim = self.sprites.sprites(images, flipX = True)
        self.framesGauches = []
        for i in self.framesGauchesNonDim :
            tailleFG = self.framesGauchesNonDim[j].get_size()
            redim = pygame.transform.scale(self.framesGauchesNonDim[j], (tailleFG[0]*2, tailleFG[1]*2))
            self.framesGauches.append(redim)
            j = j+1


        self.imageNonDim = self.imageReposNonDim = self.sprites.sprite((0, 190), (66, 92))
        tailleImage = self.imageNonDim.get_size()
        self.image = self.imageRepos = pygame.transform.scale(self.imageNonDim, (tailleImage[0]*2, tailleImage[1]*2))

        self.imageAccroupiNonDim = [
            self.sprites.sprite((355, 95), (67, 72)),
            self.sprites.sprite((355, 95), (67, 72), flipX = True)
        ]

        j = 0

        self.imageAccroupi= []

        for i in self.imageAccroupiNonDim :
            tailleA = self.imageAccroupiNonDim[j].get_size()
            redim = pygame.transform.scale(self.imageAccroupiNonDim[j], (tailleA[0]*2, tailleA[1]*2))
            self.imageAccroupi.append(redim)
            j = j+1

{'fraction_non_alphanumeric': 0.15838675213675213, 'fraction_numerical': 0.07131410256410256, 'mean_word_length': 2.0274858528698463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1303173', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1303, 'n_words': 281}