Exemple #1
0
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)
        
        
        #INFINITE LOOP WITH TIMEOUT
    
        sound_path = os.path.join('display', 'sounds', 'background.ogg')
        pygame.mixer.init()
        music = pygame.mixer.Sound(sound_path)
        music.play()
        time = music.get_length()
               
        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 12
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.   Be sure to use the `R`, `G`,
        # `B` values at the bottom, not the H, S, B values at the top.
        self.player_color     = (0, 255, 0)
        self.opponent_color   = (255, 0, 0)
        self.missile_color    = (0, 255, 255)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (255, 255, 255)
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        return
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 12
        self.font = pygame.font.SysFont("Courier New", self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_color = (0, 255, 0)
        self.opponent_color = (255, 0, 0)
        self.missile_color = (0, 255, 255)
        self.npc_color = (255, 255, 0)
        self.wall_color = (255, 255, 255)
        self.text_color = (255, 255, 255)
        self.background_color = (0, 0, 0)
        return
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 30
        self.font = pygame.font.SysFont("Helvetica",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_color     = (0, 255, 0)
        self.opponent_color   = (255, 0, 0)
        self.missile_color    = (0, 0, 0)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (255, 255, 255)
        self.text_color       = (0, 0, 0)
        self.background_color = (185, 227, 228)
        return
Exemple #4
0
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 36
        self.font = pygame.font.SysFont("Courier New", self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.   Be sure to use the `R`, `G`,
        # `B` values at the bottom, not the H, S, B values at the top.
        self.player_color = (0, 255, 0)
        self.opponent_color = (255, 0, 0)
        self.missile_color = (0, 255, 255)
        self.npc_color = (255, 255, 0)
        self.wall_color = (255, 255, 255)
        self.text_color = (255, 255, 255)
        self.background_color = (25, 100, 78)

        pygame.mixer.init()
        pygame.mixer.music.load(os.path.join('display', 'music',
                                             'bgmusic.wav'))
        pygame.mixer.music.play(-1)

        return
Exemple #5
0
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 12
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.   Be sure to use the `R`, `G`,
        # `B` values at the bottom, not the H, S, B values at the top.
        self.player_color     = (0, 255, 0)
        self.opponent_color   = (255, 0, 0)
        self.missile_color    = (0, 255, 255)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (255, 255, 255)
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        self.background_image = pygame.image.load("background-atlantis.png")
        self.enemy_image = pygame.image.load("squid.png")
        self.harpoon = pygame.image.load("harpoon.png")
        self.harpoon_right = pygame.image.load("harpoon_right.png")
        self.harpoon_up = pygame.image.load("harpoon_up.png")
        self.harpoon_down = pygame.image.load("harpoon_down.png")
        self.ink_blot = pygame.image.load("ink_blot.png")
        self.player_right = pygame.image.load("diver_right.png")
        self.player_left = pygame.image.load("diver_left.png")
        self.player_up = pygame.image.load("diver_up.png")
        self.player_down = pygame.image.load("diver_down.png")
        self.squid_player_up = pygame.image.load("squid_up.png")
        self.wall_image = pygame.image.load("wall.png")
        self.npc_image = pygame.image.load("jelly.png")
        self.loadscreen = pygame.image.load("loadscreen.png")
        self.music = "8bit Adventure Music.mp3"
        pygame.mixer.init()
        pygame.mixer.music.load(self.music)
        pygame.mixer.music.play(-1)
        pygame.mixer.music.set_volume(1.00)
        return
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 12
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_color     = (0, 255, 0)
        #self.player_image     = pygame.image.load("han.png")
        self.opponent_color   = (255, 0, 0)
        #self.missile_color    = (0, 255, 255)
        self.title_image     = pygame.image.load("display/Title.png")
        self.missiler_image    = pygame.image.load("display/bulletright.png")
        self.missilel_image    = pygame.image.load("display/bulletleft.png")
        self.missiled_image    = pygame.image.load("display/bulletdown.png")
        self.missileu_image    = pygame.image.load("display/bulletup.png")
        self.player1r_image    = pygame.image.load("display/player1right.png")
        self.player1l_image    = pygame.image.load("display/player1left.png")
        self.player1d_image    = pygame.image.load("display/player1down.png")
        self.player1u_image    = pygame.image.load("display/player1up.png")
        self.player2r_image    = pygame.image.load("display/player2right.png")
        self.player2l_image    = pygame.image.load("display/player2left.png")
        self.player2d_image    = pygame.image.load("display/player2down.png")
        self.player2u_image    = pygame.image.load("display/player2up.png")
        #self.npc_color        = (255, 255, 0)
        self.wall_image       = pygame.image.load("display/wall.png")
        self.npc_image        =  pygame.image.load("display/npc.png")
        self.npc2_image       = pygame.image.load("display/npc2.png")
        self.npc3_image       = pygame.image.load("display/npc3.png")
        #self.wall_color       = (255, 255, 255)
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        self.background_image = pygame.image.load("display/background.png")
        return
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 15
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_color     = (255, 0, 0)
        self.opponent_color   = (0, 0, 0)
        self.missile_color    = (0, 0, 255)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (50, 50, 50)
        self.text_color       = (225, 225, 225)
        self.background_color = (255, 255, 255)
        self.player_image     = [pygame.image.load("display/player1.png"), pygame.image.load("display/player2.png"), pygame.image.load("display/player3.png"), pygame.image.load("display/player4.png"), pygame.image.load("display/player.png")]
        self.opponent_image   = [pygame.image.load("display/opponent1.png"), pygame.image.load("display/opponent2.png"), pygame.image.load("display/opponent3.png"), pygame.image.load("display/opponent4.png"), pygame.image.load("display/opponent.png")]
        self.missile_image    = [pygame.image.load("display/missile1.png"), pygame.image.load("display/missile2.png")]
        self.npc_images       = [pygame.image.load("display/npcd1.png"), pygame.image.load("display/npcd2.png"), pygame.image.load("display/npcd3.png"), pygame.image.load("display/npc.png")]
        self.wall_image       = pygame.image.load("display/wall.png")
        self.background_image = pygame.image.load("display/background.png")
        self.title_background = pygame.image.load("display/Space.png")
        self.player_animation = 0
        self.opponent_animation = 0
        self.animation_count2 = 0
        self.dying_npc_animation = 0
        return
Exemple #8
0
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.title_font = pygame.font.SysFont("Courier new" , 22)
        self.font_size = 14
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_color     = (0, 255, 0)
        self.opponent_color   = (255, 0, 0)
        self.missile_color    = (0, 255, 255)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (255, 255, 255)
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        self.image_count      = 0
        self.sword_count = 0
        self.player_image_left1 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkleft_1.png"))
        self.player_image_leftidle = pygame.image.load(os.path.join("display", "Player", "NewPlayer_idleleft.png"))
        self.player_image_left2 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkleft_2.png"))
        self.player_image_right1 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkright_1.png"))
        self.player_image_rightidle = pygame.image.load(os.path.join("display", "Player", "NewPlayer_idleright.png"))
        self.player_image_right2 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkright_2.png"))
        self.player_image_up1 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkup_1.png"))
        self.player_image_upidle = pygame.image.load(os.path.join("display", "Player", "NewPlayer_idleup.png"))
        self.player_image_up2 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkup_2.png"))
        self.player_image_down1 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkdown_1.png"))
        self.player_image_downidle = pygame.image.load(os.path.join("display", "Player", "NewPlayer_idledown.png"))
        self.player_image_down2 = pygame.image.load(os.path.join("display", "Player", "NewPlayer_walkdown_2.png"))
        self.tombstone = pygame.image.load(os.path.join("display", "peps.png"))

        self.opponent_image_left1 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkleft_1.png"))
        self.opponent_image_leftidle = pygame.image.load(os.path.join("display", "Enemy", "Enemy_idleleft.png"))
        self.opponent_image_left2 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkleft_2.png"))
        self.opponent_image_right1 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkright_1.png"))
        self.opponent_image_rightidle = pygame.image.load(os.path.join("display", "Enemy", "Enemy_idleright.png"))
        self.opponent_image_right2 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkright_2.png"))
        self.opponent_image_up1 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkup_1.png"))
        self.opponent_image_upidle = pygame.image.load(os.path.join("display", "Enemy", "Enemy_idleup.png"))
        self.opponent_image_up2 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkup_2.png"))
        self.opponent_image_down1 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkdown_1.png"))
        self.opponent_image_downidle = pygame.image.load(os.path.join("display", "Enemy", "Enemy_idledown.png"))
        self.opponent_image_down2 = pygame.image.load(os.path.join("display", "Enemy", "Enemy_walkdown_2.png"))

        self.health_images = [
            pygame.image.load(os.path.join("display", "Health Bar", "HP10.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP9.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP8.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP7.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP6.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP5.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP4.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP3.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP2.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP1.png")),
            pygame.image.load(os.path.join("display", "Health Bar", "HP0.png")),
        ]

        self.arrow_images = [
            pygame.image.load(os.path.join("display", "Arrow Count", "0Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "1Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "2Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "3Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "4Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "5Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "6Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "7Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "8Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "9Arrow.png")),
            pygame.image.load(os.path.join("display", "Arrow Count", "10Arrow.png")),
        ]

        self.mana_image = [
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana10.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana9.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana8.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana7.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana6.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana5.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana4.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana3.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana2.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana1.png")),
        pygame.image.load(os.path.join("display", "Movement Mana", "MovementMana.png")),
        ]

        self.exp_image = [
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_1.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_2.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_3.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_4.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_5.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_6.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_7.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_8.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_9.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_10.png")),
        pygame.image.load(os.path.join("display", "XPBAR", "xpbar_M.png"))
        ]

        self.pxe_image = [
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_1.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_2.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_3.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_4.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_5.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_6.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_7.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_8.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_9.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_10.png")),
        pygame.image.load(os.path.join("display", "PxBar", "xpbar_M.png"))
        ]

        self.Sword_image = [
            pygame.image.load(os.path.join("display", "Loading Sword", "swordgif1.png")),
            pygame.image.load(os.path.join("display", "Loading Sword", "swordgif2.png")),
            pygame.image.load(os.path.join("display", "Loading Sword", "swordgif3.png")),
        ]

        self.missile_image_up = pygame.image.load(os.path.join("display", "Arrows", "Arrow_up.png"))
        self.missile_image_down = pygame.image.load(os.path.join("display", "Arrows", "Arrow_down.png"))
        self.missile_image_left = pygame.image.load(os.path.join("display", "Arrows", "Arrow_left.png"))
        self.missile_image_right = pygame.image.load(os.path.join("display", "Arrows", "Arrow_right.png"))
        self.npc_image1 = pygame.image.load(os.path.join("display", "NPC", "Eggefant", "eggefant.png"))
        self.npc_image2 = pygame.image.load(os.path.join("display", "NPC", "Eggefant", "eggefant2.png"))
        self.wall_image = pygame.image.load(os.path.join("display", "Wall.png"))
        self.background_image = pygame.image.load(os.path.join("display", "Background00%s.png" % self.randomizer() )) 
        self.Menu_image = pygame.image.load(os.path.join("display", "Menu.png"))
        self.gamestate = -1
        return
Exemple #9
0
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 30
        self.font = pygame.font.SysFont("oldenglishtext",self.font_size)
       

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.
        self.player_image     = pygame.image.load("FrontStandard.png")
        self.player_image_front1 = pygame.image.load("FrontWalk1.png")
        self.player_image_front2 = pygame.image.load("FrontWalk2.png")
        self.player_image_back1 = pygame.image.load("BackWalk1.png")
        self.player_image_back2 = pygame.image.load("BackWalk2.png")
        self.player_image_right_standard = pygame.image.load("SideStandard.png")
        self.player_image_right1 = pygame.image.load("SideWalk1.png")
        self.player_image_right2 = pygame.image.load("SideWalk2.png")
        self.player_image_left_standard = pygame.image.load("LeftStandard.png")
        self.player_image_left1 = pygame.image.load("LeftWalk1.png")
        self.player_image_left2 = pygame.image.load("LeftWalk2.png")
        self.image_count      = 0
        self.enemy_image   = pygame.image.load("EnemyFrontStandard.png")
        self.enemy_image_front1 = pygame.image.load("EnemyFront1.png")
        self.enemy_image_front2 = pygame.image.load("EnemyFront2.png")
        self.enemy_image_back1 = pygame.image.load("EnemyBack1.png")
        self.enemy_image_back2 = pygame.image.load("EnemyBack2.png")
        self.enemy_image_back_standard = pygame.image.load("EnemyBackStandard.png")
        self.enemy_image_right_standard = pygame.image.load("EnemyRightStandard.png")
        self.enemy_image_right1 = pygame.image.load("EnemyRight1.png")
        self.enemy_image_right2 = pygame.image.load("EnemyRight2.png")
        self.enemy_image_left_standard = pygame.image.load("EnemyLeftStandard.png")
        self.enemy_image_left1 = pygame.image.load("EnemyLeft1.png")
        self.enemy_image_left2 = pygame.image.load("EnemyLeft2.png")
        self.enemy_image_count = 0
        self.missile_color    = (0, 255, 255)
        self.arrow_image_up   = pygame.image.load("ArrowUp.png")
        self.arrow_image_down = pygame.image.load("ArrowDown.png")
        self.arrow_image_left = pygame.image.load("ArrowLeft.png")
        self.arrow_image_right = pygame.image.load("ArrowRight.png")
        self.fireball_up = pygame.image.load("FireballUp.png")
        self.fireball_down = pygame.image.load("FireballDown.png")
        self.fireball_left = pygame.image.load("FireballLeft.png")
        self.fireball_right = pygame.image.load("FireballRight.png")
        self.npc_image1       = pygame.image.load("NPC1.png")
        self.npc_image2       = pygame.image.load("NPC2.png")
        self.npc_image_count  = 0
        self.wall_image       = pygame.image.load("Wall.png")
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        self.background_image = pygame.image.load("BackgroundV1.png")
        self.game_over_lose = pygame.image.load("LoseScreen.png")
        self.game_over_win = pygame.image.load("VictoryScreen.png")
        self.game_load = pygame.image.load("LoadingScreen.png")
        self.title_image = pygame.image.load("TitleScreen.png")
        self.health_images = [
            pygame.image.load("Health Bar11.png"),
            pygame.image.load("Health Bar10.png"),
            pygame.image.load("Health Bar9.png"),
            pygame.image.load("Health Bar8.png"),
            pygame.image.load("Health Bar7.png"),
            pygame.image.load("Health Bar6.png"),
            pygame.image.load("Health Bar5.png"),
            pygame.image.load("Health Bar4.png"),
            pygame.image.load("Health Bar3.png"),
            pygame.image.load("Health Bar2.png"),
            pygame.image.load("Health Bar1.png"),
        ]
        self.arrows = [
            pygame.image.load("ArrowBar11.png"),
            pygame.image.load("ArrowBar10.png"),
            pygame.image.load("ArrowBar9.png"),
            pygame.image.load("ArrowBar8.png"),
            pygame.image.load("ArrowBar7.png"),
            pygame.image.load("ArrowBar6.png"),
            pygame.image.load("ArrowBar5.png"),
            pygame.image.load("ArrowBar4.png"),
            pygame.image.load("ArrowBar3.png"),
            pygame.image.load("ArrowBar2.png"),
            pygame.image.load("ArrowBar1.png")
        ]
        self.exp = [
            pygame.image.load("ExpBar1.png"),
            pygame.image.load("ExpBar2.png"),
            pygame.image.load("ExpBar3.png"),
            pygame.image.load("ExpBar4.png"),
            pygame.image.load("ExpBar5.png"),
            pygame.image.load("ExpBar6.png"),
            pygame.image.load("ExpBar7.png"),
            pygame.image.load("ExpBar8.png"),
            pygame.image.load("ExpBar9.png"),
            pygame.image.load("ExpBar10.png")
        ]
        self.music = "8bit Adventure Music.mp3"
        pygame.mixer.init()
        pygame.mixer.music.load(self.music)
        pygame.mixer.music.play(-1)
        pygame.mixer.music.set_volume(1.00)
        return
    def __init__(self, width, height):
        """
        Configure display-wide settings and one-time
        setup work here.
        """
        BaseDisplay.__init__(self, width, height)

        # There are other fonts available, but they are not
        # the same on every computer.  You can read more about
        # fonts at http://www.pygame.org/docs/ref/font.html
        self.font_size = 12
        self.font = pygame.font.SysFont("Courier New",self.font_size)

        # Colors are specified as a triple of integers from 0 to 255.
        # The values are how much red, green, and blue to use in the color.
        # Check out http://www.colorpicker.com/ if you want to try out
        # colors and find their RGB values.   Be sure to use the `R`, `G`,
        # `B` values at the bottom, not the H, S, B values at the top.
        self.player_color     = (0, 255, 0)
        self.opponent_color   = (255, 0, 0)
        self.missile_color    = (0, 255, 255)
        self.npc_color        = (255, 255, 0)
        self.wall_color       = (255, 255, 255)
        self.text_color       = (255, 255, 255)
        self.background_color = (0, 0, 0)
        buttonF = 'code camp buttons.png'
        sheet = Spritesheet(buttonF)

        
        self.tourneyB = sheet.image_at(pygame.Rect(5,5,200,97),(255,255,255))
        self.singleB = sheet.image_at(pygame.Rect(5,134,200,97),(255,255,255))
        self.dualB = sheet.image_at(pygame.Rect(5,264,200,97),(255,255,255))
        self.demoB = sheet.image_at(pygame.Rect(5,394,200,97),(255,255,255))

        # self.logo = pygame.image.load("display\imgs\game pngs '\code camp logo-01")


        self.filenames = ["code camp kirby-01.png", "code camp kirby-02.png", "code camp link-01-01.png", "code camp link-02-01.png", "code camp mario-01.png","code camp mario-04.png", "code camp mario-02.png","code camp mario-03.png"]
        self.imgs = []

        self.filename2 = ["code camp castle small.png", "forest background code camp small.png", "haunted house code camp small.png"]
        self.arena = []

        self.filenames2 = ["code camp logo-01.png"]
        self.logo = []


        for f in self.filenames:
            f = os.path.join('display','imgs',f)
            self.imgs.append(pygame.image.load(f))

        for a in self.filename2:
            a = os.path.join("display","imgs",a)
            self.arena.append(pygame.image.load(a))


        for l in self.filenames2:
            l = os.path.join("display", "imgs", l)
            self.logo.append(pygame.image.load(l))


        # playerStates {'walk':['walk','walkdown','walkleft','walkup','walkright'],'throw':['throw','throwdown','throwleft','throwup','throwright'], 'death':['death'],'victory':['victory'],'hp':['victory']}

        # filename = os.path.join('display', 'imgs', 'Link Sprites with coordinates.png')
        # self.image = pygame.image.load(filename)
        # self.rect = self.obj_to_rect(obj)
        # self.image = pygame.image.load(filename)
        # ss = Spritesheet(filename)
        # for s in playerStates:
            # if len(s) == 1:

            # for d in s:
                # if len()
                

        # playerStates {'walk':['walkdown','walkleft','walkup','walkright'],'throw':['throwdown','throwleft','throwup','throwright'], 'death':['death'],'victory':['victory'],'hp':['victory']}

        
        # self.image = pygame.image.load(filename)
        # self.rect = self.obj_to_rect(obj)
        # self.image = pygame.image.load(filename)
        

        
       
        return