import pygame


class Player(pygame.sprite.Sprite):
    death = [pygame.image.load('Images/death1.png'), pygame.image.load('Images/death2.png'),
             pygame.image.load('Images/death3.png'),
             pygame.image.load('Images/death4.png'), pygame.image.load('Images/death5.png'),
             pygame.image.load('Images/death6.png'),
             pygame.image.load('Images/death7.png'), pygame.image.load('Images/death8.png'),
             pygame.image.load('Images/death9.png'),
             pygame.image.load('Images/death10.png'), pygame.image.load('Images/death11.png'),
             pygame.image.load('Images/death12.png'),
             pygame.image.load('Images/death13.png'), pygame.image.load('Images/death14.png'),
             pygame.image.load('Images/death15.png'),
             pygame.image.load('Images/death16.png'), pygame.image.load('Images/death17.png'),
             pygame.image.load('Images/death18.png'),pygame.image.load('Images/death19.png'),
             pygame.image.load('Images/death20.png')]
    p1walkLeft = [pygame.image.load('Images/p1left.png'), pygame.image.load('Images/p1left1.png'),
             pygame.image.load('Images/p1left2.png'),
             pygame.image.load('Images/p1left3.png'), pygame.image.load('Images/p1left2.png'),
             pygame.image.load('Images/p1left1.png'), pygame.image.load('Images/p1left.png')]
    p1walkLeftshield = [pygame.image.load('Images/p1leftshield.png'), pygame.image.load('Images/p1left1shield.png'),
                  pygame.image.load('Images/p1left2shield.png'),
                  pygame.image.load('Images/p1left3shield.png'), pygame.image.load('Images/p1left2shield.png'),
                  pygame.image.load('Images/p1left1shield.png'), pygame.image.load('Images/p1leftshield.png')]
    p1walkRight = [pygame.image.load('Images/p1right.png'), pygame.image.load('Images/p1right1.png'),
                  pygame.image.load('Images/p1right2.png'),
                  pygame.image.load('Images/p1right3.png'), pygame.image.load('Images/p1right2.png'),
                  pygame.image.load('Images/p1right1.png'), pygame.image.load('Images/p1right.png')]
    p1walkRightshield = [pygame.image.load('Images/p1rightshield.png'), pygame.image.load('Images/p1right1shield.png'),
                   pygame.image.load('Images/p1right2shield.png'),
                   pygame.image.load('Images/p1right3shield.png'), pygame.image.load('Images/p1right2shield.png'),
                   pygame.image.load('Images/p1right1shield.png'), pygame.image.load('Images/p1rightshield.png')]
    p1walkFront = [pygame.image.load('Images/p1front.png'), pygame.image.load('Images/p1front1.png'),
                   pygame.image.load('Images/p1front2.png'),
                   pygame.image.load('Images/p1front3.png'), pygame.image.load('Images/p1front2.png'),
                   pygame.image.load('Images/p1front1.png'), pygame.image.load('Images/p1front.png')]
    p1walkFrontshield = [pygame.image.load('Images/p1frontshield.png'), pygame.image.load('Images/p1front1shield.png'),
                   pygame.image.load('Images/p1front2shield.png'),
                   pygame.image.load('Images/p1front3shield.png'), pygame.image.load('Images/p1front2shield.png'),
                   pygame.image.load('Images/p1front1shield.png'), pygame.image.load('Images/p1frontshield.png')]
    p1walkBack = [pygame.image.load('Images/p1back.png'), pygame.image.load('Images/p1back1.png'),
                   pygame.image.load('Images/p1back2.png'),
                   pygame.image.load('Images/p1back3.png'), pygame.image.load('Images/p1back2.png'),
                   pygame.image.load('Images/p1back1.png'), pygame.image.load('Images/p1back.png')]
    p1walkBackshield = [pygame.image.load('Images/p1backshield.png'), pygame.image.load('Images/p1back1shield.png'),
                  pygame.image.load('Images/p1back2shield.png'),
                  pygame.image.load('Images/p1back3shield.png'), pygame.image.load('Images/p1back2shield.png'),
                  pygame.image.load('Images/p1back1shield.png'), pygame.image.load('Images/p1backshield.png')]
    p2walkLeft = [pygame.image.load('Images/p2left.png'), pygame.image.load('Images/p2left1.png'),
                  pygame.image.load('Images/p2left2.png'),
                  pygame.image.load('Images/p2left3.png'), pygame.image.load('Images/p2left2.png'),
                  pygame.image.load('Images/p2left1.png'), pygame.image.load('Images/p2left.png')]
    p2walkRight = [pygame.image.load('Images/p2right.png'), pygame.image.load('Images/p2right1.png'),
                   pygame.image.load('Images/p2right2.png'),
                   pygame.image.load('Images/p2right3.png'), pygame.image.load('Images/p2right2.png'),
                   pygame.image.load('Images/p2right1.png'), pygame.image.load('Images/p2right.png')]
    p2walkFront = [pygame.image.load('Images/p2front.png'), pygame.image.load('Images/p2front1.png'),
                   pygame.image.load('Images/p2front2.png'),
                   pygame.image.load('Images/p2front3.png'), pygame.image.load('Images/p2front2.png'),
                   pygame.image.load('Images/p2front1.png'), pygame.image.load('Images/p2front.png')]
    p2walkBack = [pygame.image.load('Images/p2back.png'), pygame.image.load('Images/p2back1.png'),
                  pygame.image.load('Images/p2back2.png'),
                  pygame.image.load('Images/p2back3.png'), pygame.image.load('Images/p2back2.png'),
                  pygame.image.load('Images/p2back1.png'), pygame.image.load('Images/p2back.png')]
    p2walkLeftshield = [pygame.image.load('Images/p2leftshield.png'), pygame.image.load('Images/p2left1shield.png'),
                  pygame.image.load('Images/p2left2shield.png'),
                  pygame.image.load('Images/p2left3shield.png'), pygame.image.load('Images/p2left2shield.png'),
                  pygame.image.load('Images/p2left1shield.png'), pygame.image.load('Images/p2leftshield.png')]
    p2walkRightshield = [pygame.image.load('Images/p2rightshield.png'), pygame.image.load('Images/p2right1shield.png'),
                   pygame.image.load('Images/p2right2shield.png'),
                   pygame.image.load('Images/p2right3shield.png'), pygame.image.load('Images/p2right2shield.png'),
                   pygame.image.load('Images/p2right1shield.png'), pygame.image.load('Images/p2rightshield.png')]
    p2walkFrontshield = [pygame.image.load('Images/p2frontshield.png'), pygame.image.load('Images/p2front1shield.png'),
                   pygame.image.load('Images/p2front2shield.png'),
                   pygame.image.load('Images/p2front3shield.png'), pygame.image.load('Images/p2front2shield.png'),
                   pygame.image.load('Images/p2front1shield.png'), pygame.image.load('Images/p2frontshield.png')]
    p2walkBackshield = [pygame.image.load('Images/p2backshield.png'), pygame.image.load('Images/p2back1shield.png'),
                  pygame.image.load('Images/p2back2shield.png'),
                  pygame.image.load('Images/p2back3shield.png'), pygame.image.load('Images/p2back2shield.png'),
                  pygame.image.load('Images/p2back1shield.png'), pygame.image.load('Images/p2backshield.png')]
    # Constructor function
    def __init__(self, x, y, number):
        super().__init__()
        self.image = pygame.Surface([24, 28])
        self.image.fill((0,0,0))

        self.rect = self.image.get_rect()
        self.rect.y = y
        self.rect.x = x
        self.front = True
        self.back = False
        self.left = False
        self.right = False
        self.number = number

        self.change_x = 0
        self.change_y = 0
        self.walkCount = 0
        self.walls = None

        self.alive = True
        self.canmove = True
        self.deathCount = 0
        self.gotomenu=False

        self.speed=3
        self.superspeed=False
        self.superspeedcount=0

        self.shield=False
        self.shieldcount=0

        self.megabombs=False
        self.megabombcount = 0

    def changespeed(self, x, y):
        self.change_x += x
        self.change_y += y
        if self.superspeed and self.change_x==0 and self.change_y==0:
            self.speed=6
            if self.superspeedcount>=150:
                self.superspeed = False
                self.speed=3
                self.superspeedcount=0

    def update(self):
        if self.canmove:
            self.rect.x += self.change_x
            if self.change_x <0:
                self.left=True
                self.right=False
                self.front=False
                self.back=False
            elif self.change_x >0:
                self.left=False
                self.right=True
                self.front=False
                self.back=False
            block_hit_list = pygame.sprite.spritecollide(self, self.walls, False)
            for block in block_hit_list:
                if self.change_x > 0:
                    self.rect.right = block.rect.left
                else:
                    self.rect.left = block.rect.right
            self.rect.y += self.change_y
            if self.change_y <0:
                self.left=False
                self.right=False
                self.front=False
                self.back=True
            elif self.change_y >0:
                self.left=False
                self.right=False
                self.front=True
                self.back=False
            block_hit_list = pygame.sprite.spritecollide(self, self.walls, False)
            for block in block_hit_list:
                if self.change_y > 0:
                    self.rect.bottom = block.rect.top
                else:
                    self.rect.top = block.rect.bottom

    def draw(self, screen):
        if self.number == 1:
            screen.blit(pygame.image.load('Images2/'+str(self.megabombcount)+'megabombs.png'), (2, 0))
            if self.alive:
                if self.front:
                    if self.shield:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p1frontshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkFrontshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p1front.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkFront[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.back:
                    if self.shield:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p1backshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkBackshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p1back.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkBack[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.left:
                    if self.shield:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p1leftshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkLeftshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p1left.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkLeft[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.right:
                    if self.shield:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p1rightshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkRightshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p1right.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p1walkRight[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
        elif self.number == 2:
            screen.blit(pygame.image.load('Images2/'+str(self.megabombcount)+'megabombs.png'), (415, 0))
            if self.alive:
                if self.front:
                    if self.shield:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p2frontshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkFrontshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p2front.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkFront[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.back:
                    if self.shield:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p2backshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkBackshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_y == 0:
                            screen.blit(pygame.image.load('Images/p2back.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkBack[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.left:
                    if self.shield:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p2leftshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkLeftshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p2left.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkLeft[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                elif self.right:
                    if self.shield:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p2rightshield.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkRightshield[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
                    else:
                        if self.change_x == 0:
                            screen.blit(pygame.image.load('Images/p2right.png'),
                                        (self.rect.x, self.rect.y))
                        else:
                            if self.walkCount + 1 >= 21:
                                self.walkCount = 0
                            screen.blit(self.p2walkRight[self.walkCount // 3], (self.rect.x, self.rect.y))
                            self.walkCount += 1
        if self.alive == False and self.deathCount < 200:
            screen.blit(self.death[self.deathCount // 10], (self.rect.x, self.rect.y))
            self.deathCount += 1
        if self.deathCount >= 200:
            self.rect.x = 1000
            self.gotomenu=True
    def reset(self,x,y):
        self.gotomenu = False
        self.alive = True
        self.deathCount = 0
        self.rect.x = x
        self.rect.y = y
        self.canmove = True
        self.front = True
        self.change_x=0
        self.change_y=0
        self.superspeed=False
        self.speed=3
        self.shield=False
        self.megabombs=False
        self.megabombcount=0
class Wall(pygame.sprite.Sprite):
    def __init__(self, x, y, width, height):
        super().__init__()
        self.image = pygame.Surface([width,height], pygame.SRCALPHA, 32)
        image = self.image.convert_alpha()

        self.rect = self.image.get_rect()
        self.rect.y = y
        self.rect.x = x
class powerup(pygame.sprite.Sprite):
    superspeedanimation=[pygame.image.load('Images/superspeed1.png'), pygame.image.load('Images/superspeed2.png'),
             pygame.image.load('Images/superspeed3.png'), pygame.image.load('Images/superspeed3.png'),
             pygame.image.load('Images/superspeed2.png'), pygame.image.load('Images/superspeed1.png')]
    shieldanimation = [pygame.image.load('Images/shield1.png'), pygame.image.load('Images/shield2.png'),
                           pygame.image.load('Images/shield3.png'), pygame.image.load('Images/shield3.png'),
                           pygame.image.load('Images/shield2.png'), pygame.image.load('Images/shield1.png')]
    megabombanimation = [pygame.image.load('Images2/megabombicon1.png'), pygame.image.load('Images2/megabombicon2.png'),
                       pygame.image.load('Images2/megabombicon3.png'), pygame.image.load('Images2/megabombicon3.png'),
                       pygame.image.load('Images2/megabombicon2.png'), pygame.image.load('Images2/megabombicon1.png')]
    def __init__(self, x, y, number):
        super().__init__()
        self.image = pygame.Surface([22, 28], pygame.SRCALPHA, 32)
        image = self.image.convert_alpha()
        self.rect = self.image.get_rect()
        self.rect.y = y
        self.rect.x = x
        self.number = number
        self.spawntimer=0
        self.respawntimer=0
        self.exists=True
        self.animationcount=0
    def draw(self, screen):
        if self.number==1:
            if self.exists and self.spawntimer>50:
                if self.animationcount + 1 >= 30:
                    self.animationcount = 0
                screen.blit(self.superspeedanimation[self.animationcount // 5], (self.rect.x, self.rect.y))
                self.animationcount += 1
        elif self.number==2:
            if self.exists and self.spawntimer > 50:
                if self.animationcount + 1 >= 30:
                    self.animationcount = 0
                screen.blit(self.shieldanimation[self.animationcount // 5], (self.rect.x, self.rect.y))
                self.animationcount += 1
        else:
            if self.exists and self.spawntimer > 50:
                if self.animationcount + 1 >= 30:
                    self.animationcount = 0
                screen.blit(self.megabombanimation[self.animationcount // 5], (self.rect.x, self.rect.y))
                self.animationcount += 1
    def reset(self):
        self.spawntimer=0
        self.respawntimer=0
        self.exists=True
class bomb(pygame.sprite.Sprite):
    def __init__(self, x, y, width, height, bomb_count, bomb_type):
        super().__init__()
        self.image = pygame.Surface([22, 28], pygame.SRCALPHA, 32)
        image = self.image.convert_alpha()
        self.rect = self.image.get_rect()
        self.rect.y = y
        self.rect.x = x
        self.width = width
        self.height = height
        self.bomb_count = bomb_count
        self.bomb_type = bomb_type

        self.walls = None
        self.leftcheck = self.rect.x - 32
        self.rightcheck = self.rect.x + self.width
        self.upcheck = self.rect.y - 32
        self.downcheck = self.rect.y + self.height
        self.expleft = True
        self.doubleexpleft = True
        self.expright = True
        self.doubleexpright = True
        self.expup = True
        self.doubleexpup = True
        self.expdown = True
        self.doubleexpdown = True
        self.expboxlist = []

    def draw(self, screen):
        if self.bomb_count < 30:
            if self.bomb_type==0:
                screen.blit(pygame.image.load('Images/bomb3.png'), (self.rect.x, self.rect.y))
            else:
                screen.blit(pygame.image.load('Images2/megabomb3.png'), (self.rect.x, self.rect.y))
        elif self.bomb_count < 60:
            if self.bomb_type == 0:
                screen.blit(pygame.image.load('Images/bomb2.png'), (self.rect.x, self.rect.y))
            else:
                screen.blit(pygame.image.load('Images2/megabomb2.png'), (self.rect.x, self.rect.y))
        elif self.bomb_count < 90:
            if self.bomb_type == 0:
                screen.blit(pygame.image.load('Images/bomb1.png'), (self.rect.x, self.rect.y))
            else:
                screen.blit(pygame.image.load('Images2/megabomb1.png'), (self.rect.x, self.rect.y))
        elif self.bomb_count < 120:
            if self.bomb_type==0:
                for i in self.walls:
                    if i.rect.collidepoint(self.leftcheck,self.rect.y):
                        self.expleft = False
                    if i.rect.collidepoint(self.rightcheck,self.rect.y):
                        self.expright = False
                    if i.rect.collidepoint(self.rect.x,self.upcheck):
                        self.expup = False
                    if i.rect.collidepoint(self.rect.x,self.downcheck):
                        self.expdown = False
                screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.rect.y))
                self.expboxlist.append(pygame.Rect(self.rect.x, self.rect.y, 32, 32))
                if self.expleft:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.leftcheck, self.rect.y, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck+16, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.leftcheck+16, self.rect.y, 32, 32))
                if self.expright:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.rightcheck, self.rect.y, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck-16, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.rightcheck-16, self.rect.y, 32, 32))
                if self.expup:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck+16))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck+16, 32, 32))
                if self.expdown:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck-16))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck-16, 32, 32))
            elif self.bomb_type==1:
                for i in self.walls:
                    if i.rect.collidepoint(self.leftcheck, self.rect.y):
                        self.expleft = False
                    if i.rect.collidepoint(self.leftcheck-32, self.rect.y):
                            self.doubleexpleft = False
                    if i.rect.collidepoint(self.rightcheck, self.rect.y):
                        self.expright = False
                    if i.rect.collidepoint(self.rightcheck+32, self.rect.y):
                            self.doubleexpright = False
                    if i.rect.collidepoint(self.rect.x, self.upcheck):
                        self.expup = False
                    if i.rect.collidepoint(self.rect.x, self.upcheck-32):
                            self.doubleexpup = False
                    if i.rect.collidepoint(self.rect.x, self.downcheck):
                        self.expdown = False
                    if i.rect.collidepoint(self.rect.x, self.downcheck+32):
                            self.doubleexpdown = False
                screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.rect.y))
                self.expboxlist.append(pygame.Rect(self.rect.x, self.rect.y, 32, 32))
                if self.expleft:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.leftcheck, self.rect.y, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck + 16, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.leftcheck + 16, self.rect.y, 32, 32))
                    if self.doubleexpleft:
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck-32, self.rect.y))
                        self.expboxlist.append(pygame.Rect(self.leftcheck-32, self.rect.y, 32, 32))
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.leftcheck-16, self.rect.y))
                        self.expboxlist.append(pygame.Rect(self.leftcheck-16, self.rect.y, 32, 32))
                if self.expright:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.rightcheck, self.rect.y, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck - 16, self.rect.y))
                    self.expboxlist.append(pygame.Rect(self.rightcheck - 16, self.rect.y, 32, 32))
                    if self.doubleexpright:
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck+32, self.rect.y))
                        self.expboxlist.append(pygame.Rect(self.rightcheck+32, self.rect.y, 32, 32))
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rightcheck+16, self.rect.y))
                        self.expboxlist.append(pygame.Rect(self.rightcheck+16, self.rect.y, 32, 32))
                if self.expup:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck + 16))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck + 16, 32, 32))
                    if self.doubleexpup:
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck-32))
                        self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck-32, 32, 32))
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.upcheck-16))
                        self.expboxlist.append(pygame.Rect(self.rect.x, self.upcheck-16, 32, 32))
                if self.expdown:
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck, 32, 32))
                    screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck - 16))
                    self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck - 16, 32, 32))
                    if self.doubleexpdown:
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck+32))
                        self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck+32, 32, 32))
                        screen.blit(pygame.image.load('Images/explosion.png'), (self.rect.x, self.downcheck+16))
                        self.expboxlist.append(pygame.Rect(self.rect.x, self.downcheck+16, 32, 32))
[((5, 13, 5, 51), 'pygame.image.load', 'pygame.image.load', ({(5, 31, 5, 50): '"""Images/death1.png"""'}, {}), "('Images/death1.png')", False, 'import pygame\n'), ((5, 53, 5, 91), 'pygame.image.load', 'pygame.image.load', ({(5, 71, 5, 90): '"""Images/death2.png"""'}, {}), "('Images/death2.png')", False, 'import pygame\n'), ((6, 13, 6, 51), 'pygame.image.load', 'pygame.image.load', ({(6, 31, 6, 50): '"""Images/death3.png"""'}, {}), "('Images/death3.png')", False, 'import pygame\n'), ((7, 13, 7, 51), 'pygame.image.load', 'pygame.image.load', ({(7, 31, 7, 50): '"""Images/death4.png"""'}, {}), "('Images/death4.png')", False, 'import pygame\n'), ((7, 53, 7, 91), 'pygame.image.load', 'pygame.image.load', ({(7, 71, 7, 90): '"""Images/death5.png"""'}, {}), "('Images/death5.png')", False, 'import pygame\n'), ((8, 13, 8, 51), 'pygame.image.load', 'pygame.image.load', ({(8, 31, 8, 50): '"""Images/death6.png"""'}, {}), "('Images/death6.png')", False, 'import pygame\n'), ((9, 13, 9, 51), 'pygame.image.load', 'pygame.image.load', ({(9, 31, 9, 50): '"""Images/death7.png"""'}, {}), "('Images/death7.png')", False, 'import pygame\n'), ((9, 53, 9, 91), 'pygame.image.load', 'pygame.image.load', ({(9, 71, 9, 90): '"""Images/death8.png"""'}, {}), "('Images/death8.png')", False, 'import pygame\n'), ((10, 13, 10, 51), 'pygame.image.load', 'pygame.image.load', ({(10, 31, 10, 50): '"""Images/death9.png"""'}, {}), "('Images/death9.png')", False, 'import pygame\n'), ((11, 13, 11, 52), 'pygame.image.load', 'pygame.image.load', ({(11, 31, 11, 51): '"""Images/death10.png"""'}, {}), "('Images/death10.png')", False, 'import pygame\n'), ((11, 54, 11, 93), 'pygame.image.load', 'pygame.image.load', ({(11, 72, 11, 92): '"""Images/death11.png"""'}, {}), "('Images/death11.png')", False, 'import pygame\n'), ((12, 13, 12, 52), 'pygame.image.load', 'pygame.image.load', ({(12, 31, 12, 51): '"""Images/death12.png"""'}, {}), "('Images/death12.png')", False, 'import pygame\n'), ((13, 13, 13, 52), 'pygame.image.load', 'pygame.image.load', ({(13, 31, 13, 51): '"""Images/death13.png"""'}, {}), "('Images/death13.png')", False, 'import pygame\n'), ((13, 54, 13, 93), 'pygame.image.load', 'pygame.image.load', ({(13, 72, 13, 92): '"""Images/death14.png"""'}, {}), "('Images/death14.png')", False, 'import pygame\n'), ((14, 13, 14, 52), 'pygame.image.load', 'pygame.image.load', ({(14, 31, 14, 51): '"""Images/death15.png"""'}, {}), "('Images/death15.png')", False, 'import pygame\n'), ((15, 13, 15, 52), 'pygame.image.load', 'pygame.image.load', ({(15, 31, 15, 51): '"""Images/death16.png"""'}, {}), "('Images/death16.png')", False, 'import pygame\n'), ((15, 54, 15, 93), 'pygame.image.load', 'pygame.image.load', ({(15, 72, 15, 92): '"""Images/death17.png"""'}, {}), "('Images/death17.png')", False, 'import pygame\n'), ((16, 13, 16, 52), 'pygame.image.load', 'pygame.image.load', ({(16, 31, 16, 51): '"""Images/death18.png"""'}, {}), "('Images/death18.png')", False, 'import pygame\n'), ((16, 53, 16, 92), 'pygame.image.load', 'pygame.image.load', ({(16, 71, 16, 91): '"""Images/death19.png"""'}, {}), "('Images/death19.png')", False, 'import pygame\n'), ((17, 13, 17, 52), 'pygame.image.load', 'pygame.image.load', ({(17, 31, 17, 51): '"""Images/death20.png"""'}, {}), "('Images/death20.png')", False, 'import pygame\n'), ((18, 18, 18, 56), 'pygame.image.load', 'pygame.image.load', ({(18, 36, 18, 55): '"""Images/p1left.png"""'}, {}), "('Images/p1left.png')", False, 'import pygame\n'), ((18, 58, 18, 97), 'pygame.image.load', 'pygame.image.load', ({(18, 76, 18, 96): '"""Images/p1left1.png"""'}, {}), "('Images/p1left1.png')", False, 'import pygame\n'), ((19, 13, 19, 52), 'pygame.image.load', 'pygame.image.load', ({(19, 31, 19, 51): '"""Images/p1left2.png"""'}, {}), "('Images/p1left2.png')", False, 'import pygame\n'), ((20, 13, 20, 52), 'pygame.image.load', 'pygame.image.load', ({(20, 31, 20, 51): '"""Images/p1left3.png"""'}, {}), "('Images/p1left3.png')", False, 'import pygame\n'), ((20, 54, 20, 93), 'pygame.image.load', 'pygame.image.load', ({(20, 72, 20, 92): '"""Images/p1left2.png"""'}, {}), "('Images/p1left2.png')", False, 'import pygame\n'), ((21, 13, 21, 52), 'pygame.image.load', 'pygame.image.load', ({(21, 31, 21, 51): '"""Images/p1left1.png"""'}, {}), "('Images/p1left1.png')", False, 'import pygame\n'), ((21, 54, 21, 92), 'pygame.image.load', 'pygame.image.load', ({(21, 72, 21, 91): '"""Images/p1left.png"""'}, {}), "('Images/p1left.png')", False, 'import pygame\n'), ((22, 24, 22, 68), 'pygame.image.load', 'pygame.image.load', ({(22, 42, 22, 67): '"""Images/p1leftshield.png"""'}, {}), "('Images/p1leftshield.png')", False, 'import pygame\n'), ((22, 70, 22, 115), 'pygame.image.load', 'pygame.image.load', ({(22, 88, 22, 114): '"""Images/p1left1shield.png"""'}, {}), "('Images/p1left1shield.png')", False, 'import pygame\n'), ((23, 18, 23, 63), 'pygame.image.load', 'pygame.image.load', ({(23, 36, 23, 62): '"""Images/p1left2shield.png"""'}, {}), "('Images/p1left2shield.png')", False, 'import pygame\n'), ((24, 18, 24, 63), 'pygame.image.load', 'pygame.image.load', ({(24, 36, 24, 62): '"""Images/p1left3shield.png"""'}, {}), "('Images/p1left3shield.png')", False, 'import pygame\n'), ((24, 65, 24, 110), 'pygame.image.load', 'pygame.image.load', ({(24, 83, 24, 109): '"""Images/p1left2shield.png"""'}, {}), "('Images/p1left2shield.png')", False, 'import pygame\n'), ((25, 18, 25, 63), 'pygame.image.load', 'pygame.image.load', ({(25, 36, 25, 62): '"""Images/p1left1shield.png"""'}, {}), "('Images/p1left1shield.png')", False, 'import pygame\n'), ((25, 65, 25, 109), 'pygame.image.load', 'pygame.image.load', ({(25, 83, 25, 108): '"""Images/p1leftshield.png"""'}, {}), "('Images/p1leftshield.png')", False, 'import pygame\n'), ((26, 19, 26, 58), 'pygame.image.load', 'pygame.image.load', ({(26, 37, 26, 57): '"""Images/p1right.png"""'}, {}), "('Images/p1right.png')", False, 'import pygame\n'), ((26, 60, 26, 100), 'pygame.image.load', 'pygame.image.load', ({(26, 78, 26, 99): '"""Images/p1right1.png"""'}, {}), "('Images/p1right1.png')", False, 'import pygame\n'), ((27, 18, 27, 58), 'pygame.image.load', 'pygame.image.load', ({(27, 36, 27, 57): '"""Images/p1right2.png"""'}, {}), "('Images/p1right2.png')", False, 'import pygame\n'), ((28, 18, 28, 58), 'pygame.image.load', 'pygame.image.load', ({(28, 36, 28, 57): '"""Images/p1right3.png"""'}, {}), "('Images/p1right3.png')", False, 'import pygame\n'), ((28, 60, 28, 100), 'pygame.image.load', 'pygame.image.load', ({(28, 78, 28, 99): '"""Images/p1right2.png"""'}, {}), "('Images/p1right2.png')", False, 'import pygame\n'), ((29, 18, 29, 58), 'pygame.image.load', 'pygame.image.load', ({(29, 36, 29, 57): '"""Images/p1right1.png"""'}, {}), "('Images/p1right1.png')", False, 'import pygame\n'), ((29, 60, 29, 99), 'pygame.image.load', 'pygame.image.load', ({(29, 78, 29, 98): '"""Images/p1right.png"""'}, {}), "('Images/p1right.png')", False, 'import pygame\n'), ((30, 25, 30, 70), 'pygame.image.load', 'pygame.image.load', ({(30, 43, 30, 69): '"""Images/p1rightshield.png"""'}, {}), "('Images/p1rightshield.png')", False, 'import pygame\n'), ((30, 72, 30, 118), 'pygame.image.load', 'pygame.image.load', ({(30, 90, 30, 117): '"""Images/p1right1shield.png"""'}, {}), "('Images/p1right1shield.png')", False, 'import pygame\n'), ((31, 19, 31, 65), 'pygame.image.load', 'pygame.image.load', ({(31, 37, 31, 64): '"""Images/p1right2shield.png"""'}, {}), "('Images/p1right2shield.png')", False, 'import pygame\n'), ((32, 19, 32, 65), 'pygame.image.load', 'pygame.image.load', ({(32, 37, 32, 64): '"""Images/p1right3shield.png"""'}, {}), "('Images/p1right3shield.png')", False, 'import pygame\n'), ((32, 67, 32, 113), 'pygame.image.load', 'pygame.image.load', ({(32, 85, 32, 112): '"""Images/p1right2shield.png"""'}, {}), "('Images/p1right2shield.png')", False, 'import pygame\n'), ((33, 19, 33, 65), 'pygame.image.load', 'pygame.image.load', ({(33, 37, 33, 64): '"""Images/p1right1shield.png"""'}, {}), "('Images/p1right1shield.png')", False, 'import pygame\n'), ((33, 67, 33, 112), 'pygame.image.load', 'pygame.image.load', ({(33, 85, 33, 111): '"""Images/p1rightshield.png"""'}, {}), "('Images/p1rightshield.png')", False, 'import pygame\n'), ((34, 19, 34, 58), 'pygame.image.load', 'pygame.image.load', ({(34, 37, 34, 57): '"""Images/p1front.png"""'}, {}), "('Images/p1front.png')", False, 'import pygame\n'), ((34, 60, 34, 100), 'pygame.image.load', 'pygame.image.load', ({(34, 78, 34, 99): '"""Images/p1front1.png"""'}, {}), "('Images/p1front1.png')", False, 'import pygame\n'), ((35, 19, 35, 59), 'pygame.image.load', 'pygame.image.load', ({(35, 37, 35, 58): '"""Images/p1front2.png"""'}, {}), "('Images/p1front2.png')", False, 'import pygame\n'), ((36, 19, 36, 59), 'pygame.image.load', 'pygame.image.load', ({(36, 37, 36, 58): '"""Images/p1front3.png"""'}, {}), "('Images/p1front3.png')", False, 'import pygame\n'), ((36, 61, 36, 101), 'pygame.image.load', 'pygame.image.load', ({(36, 79, 36, 100): '"""Images/p1front2.png"""'}, {}), "('Images/p1front2.png')", False, 'import pygame\n'), ((37, 19, 37, 59), 'pygame.image.load', 'pygame.image.load', ({(37, 37, 37, 58): '"""Images/p1front1.png"""'}, {}), "('Images/p1front1.png')", False, 'import pygame\n'), ((37, 61, 37, 100), 'pygame.image.load', 'pygame.image.load', ({(37, 79, 37, 99): '"""Images/p1front.png"""'}, {}), "('Images/p1front.png')", False, 'import pygame\n'), ((38, 25, 38, 70), 'pygame.image.load', 'pygame.image.load', ({(38, 43, 38, 69): '"""Images/p1frontshield.png"""'}, {}), "('Images/p1frontshield.png')", False, 'import pygame\n'), ((38, 72, 38, 118), 'pygame.image.load', 'pygame.image.load', ({(38, 90, 38, 117): '"""Images/p1front1shield.png"""'}, {}), "('Images/p1front1shield.png')", False, 'import pygame\n'), ((39, 19, 39, 65), 'pygame.image.load', 'pygame.image.load', ({(39, 37, 39, 64): '"""Images/p1front2shield.png"""'}, {}), "('Images/p1front2shield.png')", False, 'import pygame\n'), ((40, 19, 40, 65), 'pygame.image.load', 'pygame.image.load', ({(40, 37, 40, 64): '"""Images/p1front3shield.png"""'}, {}), "('Images/p1front3shield.png')", False, 'import pygame\n'), ((40, 67, 40, 113), 'pygame.image.load', 'pygame.image.load', ({(40, 85, 40, 112): '"""Images/p1front2shield.png"""'}, {}), "('Images/p1front2shield.png')", False, 'import pygame\n'), ((41, 19, 41, 65), 'pygame.image.load', 'pygame.image.load', ({(41, 37, 41, 64): '"""Images/p1front1shield.png"""'}, {}), "('Images/p1front1shield.png')", False, 'import pygame\n'), ((41, 67, 41, 112), 'pygame.image.load', 'pygame.image.load', ({(41, 85, 41, 111): '"""Images/p1frontshield.png"""'}, {}), "('Images/p1frontshield.png')", False, 'import pygame\n'), ((42, 18, 42, 56), 'pygame.image.load', 'pygame.image.load', ({(42, 36, 42, 55): '"""Images/p1back.png"""'}, {}), "('Images/p1back.png')", False, 'import pygame\n'), ((42, 58, 42, 97), 'pygame.image.load', 'pygame.image.load', ({(42, 76, 42, 96): '"""Images/p1back1.png"""'}, {}), "('Images/p1back1.png')", False, 'import pygame\n'), ((43, 19, 43, 58), 'pygame.image.load', 'pygame.image.load', ({(43, 37, 43, 57): '"""Images/p1back2.png"""'}, {}), "('Images/p1back2.png')", False, 'import pygame\n'), ((44, 19, 44, 58), 'pygame.image.load', 'pygame.image.load', ({(44, 37, 44, 57): '"""Images/p1back3.png"""'}, {}), "('Images/p1back3.png')", False, 'import pygame\n'), ((44, 60, 44, 99), 'pygame.image.load', 'pygame.image.load', ({(44, 78, 44, 98): '"""Images/p1back2.png"""'}, {}), "('Images/p1back2.png')", False, 'import pygame\n'), ((45, 19, 45, 58), 'pygame.image.load', 'pygame.image.load', ({(45, 37, 45, 57): '"""Images/p1back1.png"""'}, {}), "('Images/p1back1.png')", False, 'import pygame\n'), ((45, 60, 45, 98), 'pygame.image.load', 'pygame.image.load', ({(45, 78, 45, 97): '"""Images/p1back.png"""'}, {}), "('Images/p1back.png')", False, 'import pygame\n'), ((46, 24, 46, 68), 'pygame.image.load', 'pygame.image.load', ({(46, 42, 46, 67): '"""Images/p1backshield.png"""'}, {}), "('Images/p1backshield.png')", False, 'import pygame\n'), ((46, 70, 46, 115), 'pygame.image.load', 'pygame.image.load', ({(46, 88, 46, 114): '"""Images/p1back1shield.png"""'}, {}), "('Images/p1back1shield.png')", False, 'import pygame\n'), ((47, 18, 47, 63), 'pygame.image.load', 'pygame.image.load', ({(47, 36, 47, 62): '"""Images/p1back2shield.png"""'}, {}), "('Images/p1back2shield.png')", False, 'import pygame\n'), ((48, 18, 48, 63), 'pygame.image.load', 'pygame.image.load', ({(48, 36, 48, 62): '"""Images/p1back3shield.png"""'}, {}), "('Images/p1back3shield.png')", False, 'import pygame\n'), ((48, 65, 48, 110), 'pygame.image.load', 'pygame.image.load', ({(48, 83, 48, 109): '"""Images/p1back2shield.png"""'}, {}), "('Images/p1back2shield.png')", False, 'import pygame\n'), ((49, 18, 49, 63), 'pygame.image.load', 'pygame.image.load', ({(49, 36, 49, 62): '"""Images/p1back1shield.png"""'}, {}), "('Images/p1back1shield.png')", False, 'import pygame\n'), ((49, 65, 49, 109), 'pygame.image.load', 'pygame.image.load', ({(49, 83, 49, 108): '"""Images/p1backshield.png"""'}, {}), "('Images/p1backshield.png')", False, 'import pygame\n'), ((50, 18, 50, 56), 'pygame.image.load', 'pygame.image.load', ({(50, 36, 50, 55): '"""Images/p2left.png"""'}, {}), "('Images/p2left.png')", False, 'import pygame\n'), ((50, 58, 50, 97), 'pygame.image.load', 'pygame.image.load', ({(50, 76, 50, 96): '"""Images/p2left1.png"""'}, {}), "('Images/p2left1.png')", False, 'import pygame\n'), ((51, 18, 51, 57), 'pygame.image.load', 'pygame.image.load', ({(51, 36, 51, 56): '"""Images/p2left2.png"""'}, {}), "('Images/p2left2.png')", False, 'import pygame\n'), ((52, 18, 52, 57), 'pygame.image.load', 'pygame.image.load', ({(52, 36, 52, 56): '"""Images/p2left3.png"""'}, {}), "('Images/p2left3.png')", False, 'import pygame\n'), ((52, 59, 52, 98), 'pygame.image.load', 'pygame.image.load', ({(52, 77, 52, 97): '"""Images/p2left2.png"""'}, {}), "('Images/p2left2.png')", False, 'import pygame\n'), ((53, 18, 53, 57), 'pygame.image.load', 'pygame.image.load', ({(53, 36, 53, 56): '"""Images/p2left1.png"""'}, {}), "('Images/p2left1.png')", False, 'import pygame\n'), ((53, 59, 53, 97), 'pygame.image.load', 'pygame.image.load', ({(53, 77, 53, 96): '"""Images/p2left.png"""'}, {}), "('Images/p2left.png')", False, 'import pygame\n'), ((54, 19, 54, 58), 'pygame.image.load', 'pygame.image.load', ({(54, 37, 54, 57): '"""Images/p2right.png"""'}, {}), "('Images/p2right.png')", False, 'import pygame\n'), ((54, 60, 54, 100), 'pygame.image.load', 'pygame.image.load', ({(54, 78, 54, 99): '"""Images/p2right1.png"""'}, {}), "('Images/p2right1.png')", False, 'import pygame\n'), ((55, 19, 55, 59), 'pygame.image.load', 'pygame.image.load', ({(55, 37, 55, 58): '"""Images/p2right2.png"""'}, {}), "('Images/p2right2.png')", False, 'import pygame\n'), ((56, 19, 56, 59), 'pygame.image.load', 'pygame.image.load', ({(56, 37, 56, 58): '"""Images/p2right3.png"""'}, {}), "('Images/p2right3.png')", False, 'import pygame\n'), ((56, 61, 56, 101), 'pygame.image.load', 'pygame.image.load', ({(56, 79, 56, 100): '"""Images/p2right2.png"""'}, {}), "('Images/p2right2.png')", False, 'import pygame\n'), ((57, 19, 57, 59), 'pygame.image.load', 'pygame.image.load', ({(57, 37, 57, 58): '"""Images/p2right1.png"""'}, {}), "('Images/p2right1.png')", False, 'import pygame\n'), ((57, 61, 57, 100), 'pygame.image.load', 'pygame.image.load', ({(57, 79, 57, 99): '"""Images/p2right.png"""'}, {}), "('Images/p2right.png')", False, 'import pygame\n'), ((58, 19, 58, 58), 'pygame.image.load', 'pygame.image.load', ({(58, 37, 58, 57): '"""Images/p2front.png"""'}, {}), "('Images/p2front.png')", False, 'import pygame\n'), ((58, 60, 58, 100), 'pygame.image.load', 'pygame.image.load', ({(58, 78, 58, 99): '"""Images/p2front1.png"""'}, {}), "('Images/p2front1.png')", False, 'import pygame\n'), ((59, 19, 59, 59), 'pygame.image.load', 'pygame.image.load', ({(59, 37, 59, 58): '"""Images/p2front2.png"""'}, {}), "('Images/p2front2.png')", False, 'import pygame\n'), ((60, 19, 60, 59), 'pygame.image.load', 'pygame.image.load', ({(60, 37, 60, 58): '"""Images/p2front3.png"""'}, {}), "('Images/p2front3.png')", False, 'import pygame\n'), ((60, 61, 60, 101), 'pygame.image.load', 'pygame.image.load', ({(60, 79, 60, 100): '"""Images/p2front2.png"""'}, {}), "('Images/p2front2.png')", False, 'import pygame\n'), ((61, 19, 61, 59), 'pygame.image.load', 'pygame.image.load', ({(61, 37, 61, 58): '"""Images/p2front1.png"""'}, {}), "('Images/p2front1.png')", False, 'import pygame\n'), ((61, 61, 61, 100), 'pygame.image.load', 'pygame.image.load', ({(61, 79, 61, 99): '"""Images/p2front.png"""'}, {}), "('Images/p2front.png')", False, 'import pygame\n'), ((62, 18, 62, 56), 'pygame.image.load', 'pygame.image.load', ({(62, 36, 62, 55): '"""Images/p2back.png"""'}, {}), "('Images/p2back.png')", False, 'import pygame\n'), ((62, 58, 62, 97), 'pygame.image.load', 'pygame.image.load', ({(62, 76, 62, 96): '"""Images/p2back1.png"""'}, {}), "('Images/p2back1.png')", False, 'import pygame\n'), ((63, 18, 63, 57), 'pygame.image.load', 'pygame.image.load', ({(63, 36, 63, 56): '"""Images/p2back2.png"""'}, {}), "('Images/p2back2.png')", False, 'import pygame\n'), ((64, 18, 64, 57), 'pygame.image.load', 'pygame.image.load', ({(64, 36, 64, 56): '"""Images/p2back3.png"""'}, {}), "('Images/p2back3.png')", False, 'import pygame\n'), ((64, 59, 64, 98), 'pygame.image.load', 'pygame.image.load', ({(64, 77, 64, 97): '"""Images/p2back2.png"""'}, {}), "('Images/p2back2.png')", False, 'import pygame\n'), ((65, 18, 65, 57), 'pygame.image.load', 'pygame.image.load', ({(65, 36, 65, 56): '"""Images/p2back1.png"""'}, {}), "('Images/p2back1.png')", False, 'import pygame\n'), ((65, 59, 65, 97), 'pygame.image.load', 'pygame.image.load', ({(65, 77, 65, 96): '"""Images/p2back.png"""'}, {}), "('Images/p2back.png')", False, 'import pygame\n'), ((66, 24, 66, 68), 'pygame.image.load', 'pygame.image.load', ({(66, 42, 66, 67): '"""Images/p2leftshield.png"""'}, {}), "('Images/p2leftshield.png')", False, 'import pygame\n'), ((66, 70, 66, 115), 'pygame.image.load', 'pygame.image.load', ({(66, 88, 66, 114): '"""Images/p2left1shield.png"""'}, {}), "('Images/p2left1shield.png')", False, 'import pygame\n'), ((67, 18, 67, 63), 'pygame.image.load', 'pygame.image.load', ({(67, 36, 67, 62): '"""Images/p2left2shield.png"""'}, {}), "('Images/p2left2shield.png')", False, 'import pygame\n'), ((68, 18, 68, 63), 'pygame.image.load', 'pygame.image.load', ({(68, 36, 68, 62): '"""Images/p2left3shield.png"""'}, {}), "('Images/p2left3shield.png')", False, 'import pygame\n'), ((68, 65, 68, 110), 'pygame.image.load', 'pygame.image.load', ({(68, 83, 68, 109): '"""Images/p2left2shield.png"""'}, {}), "('Images/p2left2shield.png')", False, 'import pygame\n'), ((69, 18, 69, 63), 'pygame.image.load', 'pygame.image.load', ({(69, 36, 69, 62): '"""Images/p2left1shield.png"""'}, {}), "('Images/p2left1shield.png')", False, 'import pygame\n'), ((69, 65, 69, 109), 'pygame.image.load', 'pygame.image.load', ({(69, 83, 69, 108): '"""Images/p2leftshield.png"""'}, {}), "('Images/p2leftshield.png')", False, 'import pygame\n'), ((70, 25, 70, 70), 'pygame.image.load', 'pygame.image.load', ({(70, 43, 70, 69): '"""Images/p2rightshield.png"""'}, {}), "('Images/p2rightshield.png')", False, 'import pygame\n'), ((70, 72, 70, 118), 'pygame.image.load', 'pygame.image.load', ({(70, 90, 70, 117): '"""Images/p2right1shield.png"""'}, {}), "('Images/p2right1shield.png')", False, 'import pygame\n'), ((71, 19, 71, 65), 'pygame.image.load', 'pygame.image.load', ({(71, 37, 71, 64): '"""Images/p2right2shield.png"""'}, {}), "('Images/p2right2shield.png')", False, 'import pygame\n'), ((72, 19, 72, 65), 'pygame.image.load', 'pygame.image.load', ({(72, 37, 72, 64): '"""Images/p2right3shield.png"""'}, {}), "('Images/p2right3shield.png')", False, 'import pygame\n'), ((72, 67, 72, 113), 'pygame.image.load', 'pygame.image.load', ({(72, 85, 72, 112): '"""Images/p2right2shield.png"""'}, {}), "('Images/p2right2shield.png')", False, 'import pygame\n'), ((73, 19, 73, 65), 'pygame.image.load', 'pygame.image.load', ({(73, 37, 73, 64): '"""Images/p2right1shield.png"""'}, {}), "('Images/p2right1shield.png')", False, 'import pygame\n'), ((73, 67, 73, 112), 'pygame.image.load', 'pygame.image.load', ({(73, 85, 73, 111): '"""Images/p2rightshield.png"""'}, {}), "('Images/p2rightshield.png')", False, 'import pygame\n'), ((74, 25, 74, 70), 'pygame.image.load', 'pygame.image.load', ({(74, 43, 74, 69): '"""Images/p2frontshield.png"""'}, {}), "('Images/p2frontshield.png')", False, 'import pygame\n'), ((74, 72, 74, 118), 'pygame.image.load', 'pygame.image.load', ({(74, 90, 74, 117): '"""Images/p2front1shield.png"""'}, {}), "('Images/p2front1shield.png')", False, 'import pygame\n'), ((75, 19, 75, 65), 'pygame.image.load', 'pygame.image.load', ({(75, 37, 75, 64): '"""Images/p2front2shield.png"""'}, {}), "('Images/p2front2shield.png')", False, 'import pygame\n'), ((76, 19, 76, 65), 'pygame.image.load', 'pygame.image.load', ({(76, 37, 76, 64): '"""Images/p2front3shield.png"""'}, {}), "('Images/p2front3shield.png')", False, 'import pygame\n'), ((76, 67, 76, 113), 'pygame.image.load', 'pygame.image.load', ({(76, 85, 76, 112): '"""Images/p2front2shield.png"""'}, {}), "('Images/p2front2shield.png')", False, 'import pygame\n'), ((77, 19, 77, 65), 'pygame.image.load', 'pygame.image.load', ({(77, 37, 77, 64): '"""Images/p2front1shield.png"""'}, {}), "('Images/p2front1shield.png')", False, 'import pygame\n'), ((77, 67, 77, 112), 'pygame.image.load', 'pygame.image.load', ({(77, 85, 77, 111): '"""Images/p2frontshield.png"""'}, {}), "('Images/p2frontshield.png')", False, 'import pygame\n'), ((78, 24, 78, 68), 'pygame.image.load', 'pygame.image.load', ({(78, 42, 78, 67): '"""Images/p2backshield.png"""'}, {}), "('Images/p2backshield.png')", False, 'import pygame\n'), ((78, 70, 78, 115), 'pygame.image.load', 'pygame.image.load', ({(78, 88, 78, 114): '"""Images/p2back1shield.png"""'}, {}), "('Images/p2back1shield.png')", False, 'import pygame\n'), ((79, 18, 79, 63), 'pygame.image.load', 'pygame.image.load', ({(79, 36, 79, 62): '"""Images/p2back2shield.png"""'}, {}), "('Images/p2back2shield.png')", False, 'import pygame\n'), ((80, 18, 80, 63), 'pygame.image.load', 'pygame.image.load', ({(80, 36, 80, 62): '"""Images/p2back3shield.png"""'}, {}), "('Images/p2back3shield.png')", False, 'import pygame\n'), ((80, 65, 80, 110), 'pygame.image.load', 'pygame.image.load', ({(80, 83, 80, 109): '"""Images/p2back2shield.png"""'}, {}), "('Images/p2back2shield.png')", False, 'import pygame\n'), ((81, 18, 81, 63), 'pygame.image.load', 'pygame.image.load', ({(81, 36, 81, 62): '"""Images/p2back1shield.png"""'}, {}), "('Images/p2back1shield.png')", False, 'import pygame\n'), ((81, 65, 81, 109), 'pygame.image.load', 'pygame.image.load', ({(81, 83, 81, 108): '"""Images/p2backshield.png"""'}, {}), "('Images/p2backshield.png')", False, 'import pygame\n'), ((85, 21, 85, 45), 'pygame.Surface', 'pygame.Surface', ({(85, 36, 85, 44): '[24, 28]'}, {}), '([24, 28])', False, 'import pygame\n'), ((347, 21, 347, 72), 'pygame.Surface', 'pygame.Surface', ({(347, 36, 347, 50): '[width, height]', (347, 52, 347, 67): 'pygame.SRCALPHA', (347, 69, 347, 71): '32'}, {}), '([width, height], pygame.SRCALPHA, 32)', False, 'import pygame\n'), ((354, 25, 354, 68), 'pygame.image.load', 'pygame.image.load', ({(354, 43, 354, 67): '"""Images/superspeed1.png"""'}, {}), "('Images/superspeed1.png')", False, 'import pygame\n'), ((354, 70, 354, 113), 'pygame.image.load', 'pygame.image.load', ({(354, 88, 354, 112): '"""Images/superspeed2.png"""'}, {}), "('Images/superspeed2.png')", False, 'import pygame\n'), ((355, 13, 355, 56), 'pygame.image.load', 'pygame.image.load', ({(355, 31, 355, 55): '"""Images/superspeed3.png"""'}, {}), "('Images/superspeed3.png')", False, 'import pygame\n'), ((355, 58, 355, 101), 'pygame.image.load', 'pygame.image.load', ({(355, 76, 355, 100): '"""Images/superspeed3.png"""'}, {}), "('Images/superspeed3.png')", False, 'import pygame\n'), ((356, 13, 356, 56), 'pygame.image.load', 'pygame.image.load', ({(356, 31, 356, 55): '"""Images/superspeed2.png"""'}, {}), "('Images/superspeed2.png')", False, 'import pygame\n'), ((356, 58, 356, 101), 'pygame.image.load', 'pygame.image.load', ({(356, 76, 356, 100): '"""Images/superspeed1.png"""'}, {}), "('Images/superspeed1.png')", False, 'import pygame\n'), ((357, 23, 357, 62), 'pygame.image.load', 'pygame.image.load', ({(357, 41, 357, 61): '"""Images/shield1.png"""'}, {}), "('Images/shield1.png')", False, 'import pygame\n'), ((357, 64, 357, 103), 'pygame.image.load', 'pygame.image.load', ({(357, 82, 357, 102): '"""Images/shield2.png"""'}, {}), "('Images/shield2.png')", False, 'import pygame\n'), ((358, 27, 358, 66), 'pygame.image.load', 'pygame.image.load', ({(358, 45, 358, 65): '"""Images/shield3.png"""'}, {}), "('Images/shield3.png')", False, 'import pygame\n'), ((358, 68, 358, 107), 'pygame.image.load', 'pygame.image.load', ({(358, 86, 358, 106): '"""Images/shield3.png"""'}, {}), "('Images/shield3.png')", False, 'import pygame\n'), ((359, 27, 359, 66), 'pygame.image.load', 'pygame.image.load', ({(359, 45, 359, 65): '"""Images/shield2.png"""'}, {}), "('Images/shield2.png')", False, 'import pygame\n'), ((359, 68, 359, 107), 'pygame.image.load', 'pygame.image.load', ({(359, 86, 359, 106): '"""Images/shield1.png"""'}, {}), "('Images/shield1.png')", False, 'import pygame\n'), ((360, 25, 360, 71), 'pygame.image.load', 'pygame.image.load', ({(360, 43, 360, 70): '"""Images2/megabombicon1.png"""'}, {}), "('Images2/megabombicon1.png')", False, 'import pygame\n'), ((360, 73, 360, 119), 'pygame.image.load', 'pygame.image.load', ({(360, 91, 360, 118): '"""Images2/megabombicon2.png"""'}, {}), "('Images2/megabombicon2.png')", False, 'import pygame\n'), ((361, 23, 361, 69), 'pygame.image.load', 'pygame.image.load', ({(361, 41, 361, 68): '"""Images2/megabombicon3.png"""'}, {}), "('Images2/megabombicon3.png')", False, 'import pygame\n'), ((361, 71, 361, 117), 'pygame.image.load', 'pygame.image.load', ({(361, 89, 361, 116): '"""Images2/megabombicon3.png"""'}, {}), "('Images2/megabombicon3.png')", False, 'import pygame\n'), ((362, 23, 362, 69), 'pygame.image.load', 'pygame.image.load', ({(362, 41, 362, 68): '"""Images2/megabombicon2.png"""'}, {}), "('Images2/megabombicon2.png')", False, 'import pygame\n'), ((362, 71, 362, 117), 'pygame.image.load', 'pygame.image.load', ({(362, 89, 362, 116): '"""Images2/megabombicon1.png"""'}, {}), "('Images2/megabombicon1.png')", False, 'import pygame\n'), ((365, 21, 365, 66), 'pygame.Surface', 'pygame.Surface', ({(365, 36, 365, 44): '[22, 28]', (365, 46, 365, 61): 'pygame.SRCALPHA', (365, 63, 365, 65): '32'}, {}), '([22, 28], pygame.SRCALPHA, 32)', False, 'import pygame\n'), ((401, 21, 401, 66), 'pygame.Surface', 'pygame.Surface', ({(401, 36, 401, 44): '[22, 28]', (401, 46, 401, 61): 'pygame.SRCALPHA', (401, 63, 401, 65): '32'}, {}), '([22, 28], pygame.SRCALPHA, 32)', False, 'import pygame\n'), ((140, 29, 140, 81), 'pygame.sprite.spritecollide', 'pygame.sprite.spritecollide', ({(140, 57, 140, 61): 'self', (140, 63, 140, 73): 'self.walls', (140, 75, 140, 80): 'False'}, {}), '(self, self.walls, False)', False, 'import pygame\n'), ((157, 29, 157, 81), 'pygame.sprite.spritecollide', 'pygame.sprite.spritecollide', ({(157, 57, 157, 61): 'self', (157, 63, 157, 73): 'self.walls', (157, 75, 157, 80): 'False'}, {}), '(self, self.walls, False)', False, 'import pygame\n'), ((429, 28, 429, 65), 'pygame.image.load', 'pygame.image.load', ({(429, 46, 429, 64): '"""Images/bomb3.png"""'}, {}), "('Images/bomb3.png')", False, 'import pygame\n'), ((431, 28, 431, 70), 'pygame.image.load', 'pygame.image.load', ({(431, 46, 431, 69): '"""Images2/megabomb3.png"""'}, {}), "('Images2/megabomb3.png')", False, 'import pygame\n'), ((434, 28, 434, 65), 'pygame.image.load', 'pygame.image.load', ({(434, 46, 434, 64): '"""Images/bomb2.png"""'}, {}), "('Images/bomb2.png')", False, 'import pygame\n'), ((436, 28, 436, 70), 'pygame.image.load', 'pygame.image.load', ({(436, 46, 436, 69): '"""Images2/megabomb2.png"""'}, {}), "('Images2/megabomb2.png')", False, 'import pygame\n'), ((439, 28, 439, 65), 'pygame.image.load', 'pygame.image.load', ({(439, 46, 439, 64): '"""Images/bomb1.png"""'}, {}), "('Images/bomb1.png')", False, 'import pygame\n'), ((441, 28, 441, 70), 'pygame.image.load', 'pygame.image.load', ({(441, 46, 441, 69): '"""Images2/megabomb1.png"""'}, {}), "('Images2/megabomb1.png')", False, 'import pygame\n'), ((171, 40, 171, 85), 'pygame.image.load', 'pygame.image.load', ({(171, 58, 171, 84): '"""Images/p1frontshield.png"""'}, {}), "('Images/p1frontshield.png')", False, 'import pygame\n'), ((180, 40, 180, 79), 'pygame.image.load', 'pygame.image.load', ({(180, 58, 180, 78): '"""Images/p1front.png"""'}, {}), "('Images/p1front.png')", False, 'import pygame\n'), ((453, 28, 453, 69), 'pygame.image.load', 'pygame.image.load', ({(453, 46, 453, 68): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((454, 39, 454, 84), 'pygame.Rect', 'pygame.Rect', ({(454, 51, 454, 62): 'self.rect.x', (454, 64, 454, 75): 'self.rect.y', (454, 77, 454, 79): '(32)', (454, 81, 454, 83): '(32)'}, {}), '(self.rect.x, self.rect.y, 32, 32)', False, 'import pygame\n'), ((190, 40, 190, 84), 'pygame.image.load', 'pygame.image.load', ({(190, 58, 190, 83): '"""Images/p1backshield.png"""'}, {}), "('Images/p1backshield.png')", False, 'import pygame\n'), ((199, 40, 199, 78), 'pygame.image.load', 'pygame.image.load', ({(199, 58, 199, 77): '"""Images/p1back.png"""'}, {}), "('Images/p1back.png')", False, 'import pygame\n'), ((250, 40, 250, 85), 'pygame.image.load', 'pygame.image.load', ({(250, 58, 250, 84): '"""Images/p2frontshield.png"""'}, {}), "('Images/p2frontshield.png')", False, 'import pygame\n'), ((259, 40, 259, 79), 'pygame.image.load', 'pygame.image.load', ({(259, 58, 259, 78): '"""Images/p2front.png"""'}, {}), "('Images/p2front.png')", False, 'import pygame\n'), ((456, 32, 456, 73), 'pygame.image.load', 'pygame.image.load', ({(456, 50, 456, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((457, 43, 457, 91), 'pygame.Rect', 'pygame.Rect', ({(457, 55, 457, 69): 'self.leftcheck', (457, 71, 457, 82): 'self.rect.y', (457, 84, 457, 86): '(32)', (457, 88, 457, 90): '(32)'}, {}), '(self.leftcheck, self.rect.y, 32, 32)', False, 'import pygame\n'), ((458, 32, 458, 73), 'pygame.image.load', 'pygame.image.load', ({(458, 50, 458, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((459, 43, 459, 94), 'pygame.Rect', 'pygame.Rect', ({(459, 55, 459, 72): '(self.leftcheck + 16)', (459, 74, 459, 85): 'self.rect.y', (459, 87, 459, 89): '(32)', (459, 91, 459, 93): '(32)'}, {}), '(self.leftcheck + 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((461, 32, 461, 73), 'pygame.image.load', 'pygame.image.load', ({(461, 50, 461, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((462, 43, 462, 92), 'pygame.Rect', 'pygame.Rect', ({(462, 55, 462, 70): 'self.rightcheck', (462, 72, 462, 83): 'self.rect.y', (462, 85, 462, 87): '(32)', (462, 89, 462, 91): '(32)'}, {}), '(self.rightcheck, self.rect.y, 32, 32)', False, 'import pygame\n'), ((463, 32, 463, 73), 'pygame.image.load', 'pygame.image.load', ({(463, 50, 463, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((464, 43, 464, 95), 'pygame.Rect', 'pygame.Rect', ({(464, 55, 464, 73): '(self.rightcheck - 16)', (464, 75, 464, 86): 'self.rect.y', (464, 88, 464, 90): '(32)', (464, 92, 464, 94): '(32)'}, {}), '(self.rightcheck - 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((466, 32, 466, 73), 'pygame.image.load', 'pygame.image.load', ({(466, 50, 466, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((467, 43, 467, 89), 'pygame.Rect', 'pygame.Rect', ({(467, 55, 467, 66): 'self.rect.x', (467, 68, 467, 80): 'self.upcheck', (467, 82, 467, 84): '(32)', (467, 86, 467, 88): '(32)'}, {}), '(self.rect.x, self.upcheck, 32, 32)', False, 'import pygame\n'), ((468, 32, 468, 73), 'pygame.image.load', 'pygame.image.load', ({(468, 50, 468, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((469, 43, 469, 92), 'pygame.Rect', 'pygame.Rect', ({(469, 55, 469, 66): 'self.rect.x', (469, 68, 469, 83): '(self.upcheck + 16)', (469, 85, 469, 87): '(32)', (469, 89, 469, 91): '(32)'}, {}), '(self.rect.x, self.upcheck + 16, 32, 32)', False, 'import pygame\n'), ((471, 32, 471, 73), 'pygame.image.load', 'pygame.image.load', ({(471, 50, 471, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((472, 43, 472, 91), 'pygame.Rect', 'pygame.Rect', ({(472, 55, 472, 66): 'self.rect.x', (472, 68, 472, 82): 'self.downcheck', (472, 84, 472, 86): '(32)', (472, 88, 472, 90): '(32)'}, {}), '(self.rect.x, self.downcheck, 32, 32)', False, 'import pygame\n'), ((473, 32, 473, 73), 'pygame.image.load', 'pygame.image.load', ({(473, 50, 473, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((474, 43, 474, 94), 'pygame.Rect', 'pygame.Rect', ({(474, 55, 474, 66): 'self.rect.x', (474, 68, 474, 85): '(self.downcheck - 16)', (474, 87, 474, 89): '(32)', (474, 91, 474, 93): '(32)'}, {}), '(self.rect.x, self.downcheck - 16, 32, 32)', False, 'import pygame\n'), ((493, 28, 493, 69), 'pygame.image.load', 'pygame.image.load', ({(493, 46, 493, 68): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((494, 39, 494, 84), 'pygame.Rect', 'pygame.Rect', ({(494, 51, 494, 62): 'self.rect.x', (494, 64, 494, 75): 'self.rect.y', (494, 77, 494, 79): '(32)', (494, 81, 494, 83): '(32)'}, {}), '(self.rect.x, self.rect.y, 32, 32)', False, 'import pygame\n'), ((209, 40, 209, 84), 'pygame.image.load', 'pygame.image.load', ({(209, 58, 209, 83): '"""Images/p1leftshield.png"""'}, {}), "('Images/p1leftshield.png')", False, 'import pygame\n'), ((218, 40, 218, 78), 'pygame.image.load', 'pygame.image.load', ({(218, 58, 218, 77): '"""Images/p1left.png"""'}, {}), "('Images/p1left.png')", False, 'import pygame\n'), ((269, 40, 269, 84), 'pygame.image.load', 'pygame.image.load', ({(269, 58, 269, 83): '"""Images/p2backshield.png"""'}, {}), "('Images/p2backshield.png')", False, 'import pygame\n'), ((278, 40, 278, 78), 'pygame.image.load', 'pygame.image.load', ({(278, 58, 278, 77): '"""Images/p2back.png"""'}, {}), "('Images/p2back.png')", False, 'import pygame\n'), ((496, 32, 496, 73), 'pygame.image.load', 'pygame.image.load', ({(496, 50, 496, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((497, 43, 497, 91), 'pygame.Rect', 'pygame.Rect', ({(497, 55, 497, 69): 'self.leftcheck', (497, 71, 497, 82): 'self.rect.y', (497, 84, 497, 86): '(32)', (497, 88, 497, 90): '(32)'}, {}), '(self.leftcheck, self.rect.y, 32, 32)', False, 'import pygame\n'), ((498, 32, 498, 73), 'pygame.image.load', 'pygame.image.load', ({(498, 50, 498, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((499, 43, 499, 96), 'pygame.Rect', 'pygame.Rect', ({(499, 55, 499, 74): '(self.leftcheck + 16)', (499, 76, 499, 87): 'self.rect.y', (499, 89, 499, 91): '(32)', (499, 93, 499, 95): '(32)'}, {}), '(self.leftcheck + 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((506, 32, 506, 73), 'pygame.image.load', 'pygame.image.load', ({(506, 50, 506, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((507, 43, 507, 92), 'pygame.Rect', 'pygame.Rect', ({(507, 55, 507, 70): 'self.rightcheck', (507, 72, 507, 83): 'self.rect.y', (507, 85, 507, 87): '(32)', (507, 89, 507, 91): '(32)'}, {}), '(self.rightcheck, self.rect.y, 32, 32)', False, 'import pygame\n'), ((508, 32, 508, 73), 'pygame.image.load', 'pygame.image.load', ({(508, 50, 508, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((509, 43, 509, 97), 'pygame.Rect', 'pygame.Rect', ({(509, 55, 509, 75): '(self.rightcheck - 16)', (509, 77, 509, 88): 'self.rect.y', (509, 90, 509, 92): '(32)', (509, 94, 509, 96): '(32)'}, {}), '(self.rightcheck - 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((516, 32, 516, 73), 'pygame.image.load', 'pygame.image.load', ({(516, 50, 516, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((517, 43, 517, 89), 'pygame.Rect', 'pygame.Rect', ({(517, 55, 517, 66): 'self.rect.x', (517, 68, 517, 80): 'self.upcheck', (517, 82, 517, 84): '(32)', (517, 86, 517, 88): '(32)'}, {}), '(self.rect.x, self.upcheck, 32, 32)', False, 'import pygame\n'), ((518, 32, 518, 73), 'pygame.image.load', 'pygame.image.load', ({(518, 50, 518, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((519, 43, 519, 94), 'pygame.Rect', 'pygame.Rect', ({(519, 55, 519, 66): 'self.rect.x', (519, 68, 519, 85): '(self.upcheck + 16)', (519, 87, 519, 89): '(32)', (519, 91, 519, 93): '(32)'}, {}), '(self.rect.x, self.upcheck + 16, 32, 32)', False, 'import pygame\n'), ((526, 32, 526, 73), 'pygame.image.load', 'pygame.image.load', ({(526, 50, 526, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((527, 43, 527, 91), 'pygame.Rect', 'pygame.Rect', ({(527, 55, 527, 66): 'self.rect.x', (527, 68, 527, 82): 'self.downcheck', (527, 84, 527, 86): '(32)', (527, 88, 527, 90): '(32)'}, {}), '(self.rect.x, self.downcheck, 32, 32)', False, 'import pygame\n'), ((528, 32, 528, 73), 'pygame.image.load', 'pygame.image.load', ({(528, 50, 528, 72): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((529, 43, 529, 96), 'pygame.Rect', 'pygame.Rect', ({(529, 55, 529, 66): 'self.rect.x', (529, 68, 529, 87): '(self.downcheck - 16)', (529, 89, 529, 91): '(32)', (529, 93, 529, 95): '(32)'}, {}), '(self.rect.x, self.downcheck - 16, 32, 32)', False, 'import pygame\n'), ((228, 40, 228, 85), 'pygame.image.load', 'pygame.image.load', ({(228, 58, 228, 84): '"""Images/p1rightshield.png"""'}, {}), "('Images/p1rightshield.png')", False, 'import pygame\n'), ((237, 40, 237, 79), 'pygame.image.load', 'pygame.image.load', ({(237, 58, 237, 78): '"""Images/p1right.png"""'}, {}), "('Images/p1right.png')", False, 'import pygame\n'), ((288, 40, 288, 84), 'pygame.image.load', 'pygame.image.load', ({(288, 58, 288, 83): '"""Images/p2leftshield.png"""'}, {}), "('Images/p2leftshield.png')", False, 'import pygame\n'), ((297, 40, 297, 78), 'pygame.image.load', 'pygame.image.load', ({(297, 58, 297, 77): '"""Images/p2left.png"""'}, {}), "('Images/p2left.png')", False, 'import pygame\n'), ((501, 36, 501, 77), 'pygame.image.load', 'pygame.image.load', ({(501, 54, 501, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((502, 47, 502, 98), 'pygame.Rect', 'pygame.Rect', ({(502, 59, 502, 76): '(self.leftcheck - 32)', (502, 78, 502, 89): 'self.rect.y', (502, 91, 502, 93): '(32)', (502, 95, 502, 97): '(32)'}, {}), '(self.leftcheck - 32, self.rect.y, 32, 32)', False, 'import pygame\n'), ((503, 36, 503, 77), 'pygame.image.load', 'pygame.image.load', ({(503, 54, 503, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((504, 47, 504, 98), 'pygame.Rect', 'pygame.Rect', ({(504, 59, 504, 76): '(self.leftcheck - 16)', (504, 78, 504, 89): 'self.rect.y', (504, 91, 504, 93): '(32)', (504, 95, 504, 97): '(32)'}, {}), '(self.leftcheck - 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((511, 36, 511, 77), 'pygame.image.load', 'pygame.image.load', ({(511, 54, 511, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((512, 47, 512, 99), 'pygame.Rect', 'pygame.Rect', ({(512, 59, 512, 77): '(self.rightcheck + 32)', (512, 79, 512, 90): 'self.rect.y', (512, 92, 512, 94): '(32)', (512, 96, 512, 98): '(32)'}, {}), '(self.rightcheck + 32, self.rect.y, 32, 32)', False, 'import pygame\n'), ((513, 36, 513, 77), 'pygame.image.load', 'pygame.image.load', ({(513, 54, 513, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((514, 47, 514, 99), 'pygame.Rect', 'pygame.Rect', ({(514, 59, 514, 77): '(self.rightcheck + 16)', (514, 79, 514, 90): 'self.rect.y', (514, 92, 514, 94): '(32)', (514, 96, 514, 98): '(32)'}, {}), '(self.rightcheck + 16, self.rect.y, 32, 32)', False, 'import pygame\n'), ((521, 36, 521, 77), 'pygame.image.load', 'pygame.image.load', ({(521, 54, 521, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((522, 47, 522, 96), 'pygame.Rect', 'pygame.Rect', ({(522, 59, 522, 70): 'self.rect.x', (522, 72, 522, 87): '(self.upcheck - 32)', (522, 89, 522, 91): '(32)', (522, 93, 522, 95): '(32)'}, {}), '(self.rect.x, self.upcheck - 32, 32, 32)', False, 'import pygame\n'), ((523, 36, 523, 77), 'pygame.image.load', 'pygame.image.load', ({(523, 54, 523, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((524, 47, 524, 96), 'pygame.Rect', 'pygame.Rect', ({(524, 59, 524, 70): 'self.rect.x', (524, 72, 524, 87): '(self.upcheck - 16)', (524, 89, 524, 91): '(32)', (524, 93, 524, 95): '(32)'}, {}), '(self.rect.x, self.upcheck - 16, 32, 32)', False, 'import pygame\n'), ((531, 36, 531, 77), 'pygame.image.load', 'pygame.image.load', ({(531, 54, 531, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((532, 47, 532, 98), 'pygame.Rect', 'pygame.Rect', ({(532, 59, 532, 70): 'self.rect.x', (532, 72, 532, 89): '(self.downcheck + 32)', (532, 91, 532, 93): '(32)', (532, 95, 532, 97): '(32)'}, {}), '(self.rect.x, self.downcheck + 32, 32, 32)', False, 'import pygame\n'), ((533, 36, 533, 77), 'pygame.image.load', 'pygame.image.load', ({(533, 54, 533, 76): '"""Images/explosion.png"""'}, {}), "('Images/explosion.png')", False, 'import pygame\n'), ((534, 47, 534, 98), 'pygame.Rect', 'pygame.Rect', ({(534, 59, 534, 70): 'self.rect.x', (534, 72, 534, 89): '(self.downcheck + 16)', (534, 91, 534, 93): '(32)', (534, 95, 534, 97): '(32)'}, {}), '(self.rect.x, self.downcheck + 16, 32, 32)', False, 'import pygame\n'), ((307, 40, 307, 85), 'pygame.image.load', 'pygame.image.load', ({(307, 58, 307, 84): '"""Images/p2rightshield.png"""'}, {}), "('Images/p2rightshield.png')", False, 'import pygame\n'), ((316, 40, 316, 79), 'pygame.image.load', 'pygame.image.load', ({(316, 58, 316, 78): '"""Images/p2right.png"""'}, {}), "('Images/p2right.png')", False, 'import pygame\n')]