public void init() {
        setSize(500,700);  //inicio con tama;o 500 x 700
        iScore = 0;     //score de 0
        iVidas = 4;     //con 10 vidas
        iVelocidad = 4;     //velocidad inicia con 4
        iCada5 = 0;         //empiezas con 0
        iNivel = 1;
        iRandom = 0;
        iContador = 0;      //contador en 0
        bIzq = false;       //no me muevo
        bDer = false;       //no me muevo
        lnkBricks = new LinkedList();       //creo la lista encadenada de bricks
        lnkPowerUps = new LinkedList();     //creo la lista de powerups
        bJuega = false;     //no estoy jugando
        
        bPausa = false;     //no estoy pausado
        bCambioNivel = false;   //no e cambiado de nivle
        bGano = false;
        arrOpciones = new ArrayList();
        
        //PowerUps
        bPoder = false;
        iPoder = 0;
        bShrink = false;
        bUnaSolaVez = false;
        
        //CHEAT
        bCheat = false;
        
        //Pantalla iniciol
        bInicio = true;
        iInicio = 1;
        
        //cargo imagen de bola       
        URL urlImagenBola = this.getClass().getResource("dea.png");
     
        // Creo el objeto bola
        bolBola = new Bola(getWidth() / 2, 150, 
                Toolkit.getDefaultToolkit().getImage(urlImagenBola));
        
        //asigno la velociada a la bola ligeramente cargada a la y
        bolBola.setDirX(iVelocidad + 1);
        bolBola.setDirY(iVelocidad + 2);

        /***********se cargan las imagenes del paddle normal*******************/
        Image imaDrone1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBase01.png"));
        Image imaDrone2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBase02.png")); 
        Image imaDrone3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBase03.png"));
        Image imaDroneIzq1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseLeft01.png"));
        Image imaDroneIzq2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseLeft02.png"));
        Image imaDroneIzq3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseLeft03.png"));     
        Image imaDroneDer1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseRight01.png"));
        Image imaDroneDer2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseRight02.png"));
        Image imaDroneDer3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneBaseRight03.png"));
        
        //se crea la animacion
        padDrone = new Paddle(0, 0);
        padDrone.sumaCuadro(imaDrone1, 50);
        padDrone.sumaCuadro(imaDrone2, 50);
        padDrone.sumaCuadro(imaDrone3, 50);
        padDrone.setX((getWidth() / 2) - 50);
        padDrone.setY(50);
        
        //se crea animacion izq
        padDroneIzq = new Paddle(0,0);
        padDroneIzq.sumaCuadro(imaDroneIzq1, 50);
        padDroneIzq.sumaCuadro(imaDroneIzq2, 50);
        padDroneIzq.sumaCuadro(imaDroneIzq3, 50);
        
        //se crea animacion der
        padDroneDer = new Paddle(0,0);
        padDroneDer.sumaCuadro(imaDroneDer1, 50);
        padDroneDer.sumaCuadro(imaDroneDer2, 50);
        padDroneDer.sumaCuadro(imaDroneDer3, 50);

        /***********se cargan las imagenes del paddle chico*******************/
        Image imaDroneSmall1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmall01.png"));
        Image imaDroneSmall2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmall02.png")); 
        Image imaDroneSmall3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmall03.png"));
        Image imaDroneSmallIzq1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallLeft01.png"));
        Image imaDroneSmallIzq2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallLeft02.png"));
        Image imaDroneSmallIzq3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallLeft03.png"));     
        Image imaDroneSmallDer1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallRight01.png"));
        Image imaDroneSmallDer2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallRight02.png"));
        Image imaDroneSmallDer3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneSmallRight03.png"));
        
        //se crea la animacion
        padDroneSmall = new Paddle(0, 0);
        padDroneSmall.sumaCuadro(imaDroneSmall1, 50);
        padDroneSmall.sumaCuadro(imaDroneSmall2, 50);
        padDroneSmall.sumaCuadro(imaDroneSmall3, 50);
        padDroneSmall.setX((getWidth() / 2) - 50);
        padDroneSmall.setY(50);
        
        //se crea animacion izq
        padDroneSmallIzq = new Paddle(0,0);
        padDroneSmallIzq.sumaCuadro(imaDroneSmallIzq1, 50);
        padDroneSmallIzq.sumaCuadro(imaDroneSmallIzq2, 50);
        padDroneSmallIzq.sumaCuadro(imaDroneSmallIzq3, 50);
        
        //se crea animacion der
        padDroneSmallDer = new Paddle(0,0);
        padDroneSmallDer.sumaCuadro(imaDroneSmallDer1, 50);
        padDroneSmallDer.sumaCuadro(imaDroneSmallDer2, 50);
        padDroneSmallDer.sumaCuadro(imaDroneSmallDer3, 50);
        
        /***********se cargan las imagenes del paddle Grande*******************/
        Image imaDroneLarge1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLarge01.png"));
        Image imaDroneLarge2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLarge02.png")); 
        Image imaDroneLarge3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLarge03.png"));
        Image imaDroneLargeIzq1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeLeft01.png"));
        Image imaDroneLargeIzq2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeLeft02.png"));
        Image imaDroneLargeIzq3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeLeft03.png"));     
        Image imaDroneLargeDer1 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeRight01.png"));
        Image imaDroneLargeDer2 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeRight02.png"));
        Image imaDroneLargeDer3 = Toolkit.getDefaultToolkit().getImage(
                this.getClass().getResource("Player_DroneLargeRight03.png"));
        
        //se crea la animacion
        padDroneLarge = new Paddle(0, 0);
        padDroneLarge.sumaCuadro(imaDroneLarge1, 50);
        padDroneLarge.sumaCuadro(imaDroneLarge2, 50);
        padDroneLarge.sumaCuadro(imaDroneLarge3, 50);
        padDroneLarge.setX((getWidth() / 2) - 50);
        padDroneLarge.setY(50);
        
        //se crea animacion izq
        padDroneLargeIzq = new Paddle(0,0);
        padDroneLargeIzq.sumaCuadro(imaDroneLargeIzq1, 50);
        padDroneLargeIzq.sumaCuadro(imaDroneLargeIzq2, 50);
        padDroneLargeIzq.sumaCuadro(imaDroneLargeIzq3, 50);
        
        //se crea animacion der
        padDroneLargeDer = new Paddle(0,0);
        padDroneLargeDer.sumaCuadro(imaDroneLargeDer1, 50);
        padDroneLargeDer.sumaCuadro(imaDroneLargeDer2, 50);
        padDroneLargeDer.sumaCuadro(imaDroneLargeDer3, 50);
        
        
        //se acomoda la bola debajo de la barra
        bolBola.setY(padDrone.getY() + padDrone.getImagen().getHeight(null) 
                + 40);
        bolBola.setX((getWidth() / 2) - (bolBola.getAncho() / 2));
        
        //creo imagen de Barril
        urlImagenBarril = this.getClass().getResource
                ("Brick_GoldenMothBarrel.png");
        //creo imagen de Oso
        urlImagenOso = this.getClass().getResource("Brick_PinkBear.png");
        //creo imagen de Meth
        urlImagenMeth = this.getClass().getResource("Brick_BlueMethBaggie.png");
       
        //Creo imagenes de powerups
        urlPowerS = this.getClass().getResource("PowerUp_Shrink.png");
        urlPowerF = this.getClass().getResource("PowerUp_Speed.png");
        urlPowerG = this.getClass().getResource("PowerUp_Enlarge.png");
        urlPowerL = this.getClass().getResource("PowerUp_LifeUp.png");
        
        //pos 0 shrink--1 fast---2 grow---3 life up
        arrOpciones.add(Toolkit.getDefaultToolkit().getImage(urlPowerS));
        arrOpciones.add(Toolkit.getDefaultToolkit().getImage(urlPowerF));
        arrOpciones.add(Toolkit.getDefaultToolkit().getImage(urlPowerG));
        arrOpciones.add(Toolkit.getDefaultToolkit().getImage(urlPowerL));
        
        //SONIDOS
        //sonidos
        soundHit = new SoundClip("Hit.wav");
        soundEnlarge = new SoundClip("Enlarge.wav");
        soundGroan = new SoundClip("Groan.wav");
        soundLifeUp = new SoundClip("LifeUp.wav");
        soundShrink = new SoundClip("Shrink.wav");
        soundSpeedUp = new SoundClip("SpeedUp.wav");
        soundGameOver = new SoundClip("GameOver.wav");

        /*********NIVEL 1********/
        //Creo 5 filas de meth y luego a tuco
        
        for(int iI = 0; iI < 10; iI++){
            Brick briBloque1 = new Brick(50 * iI, (getHeight() / 2) , 1, 
                    Toolkit.getDefaultToolkit().getImage(urlImagenMeth));
            lnkBricks.add(briBloque1);
            
            Brick briBloque2 = new Brick(50 * iI, (getHeight() / 2) + 20 , 3, 
                    Toolkit.getDefaultToolkit().getImage(urlImagenBarril));
            lnkBricks.add(briBloque2);
            
            Brick briBloque3 = new Brick(50 * iI, (getHeight() / 2) + 100 , 2, 
                    Toolkit.getDefaultToolkit().getImage(urlImagenOso));
            lnkBricks.add(briBloque3);
            
            Brick briBloque4 = new Brick(50 * iI, (getHeight() / 2) + 140, 1, 
                    Toolkit.getDefaultToolkit().getImage(urlImagenMeth));
            lnkBricks.add(briBloque4);
        }
        
        //Agrego imagenes de boss TUCO
        urlTuco1 = this.getClass().getResource("Character_Tuco01.png");
        urlTuco2 = this.getClass().getResource("Character_Tuco02.png");
        urlTuco3 = this.getClass().getResource("Character_Tuco03.png");
        urlTuco4 = this.getClass().getResource("Character_Tuco04.png");
        urlTuco5 = this.getClass().getResource("Character_Tuco05.png");

        //agrego a tuto
        bossVillano = new Boss(getWidth() / 2 - 50, getHeight() - 110,
            5, Toolkit.getDefaultToolkit().getImage(urlTuco1));
       
        //se agrega cada una de las Fases
        bossVillano.agregaFase(Toolkit.getDefaultToolkit().getImage(urlTuco2));
        bossVillano.agregaFase(Toolkit.getDefaultToolkit().getImage(urlTuco3));
        bossVillano.agregaFase(Toolkit.getDefaultToolkit().getImage(urlTuco4));
        bossVillano.agregaFase(Toolkit.getDefaultToolkit().getImage(urlTuco5));
         
        //Agrero imagenes de boss Primos
        urlPrimos1 = this.getClass().getResource("Character_Primos01.png");
        urlPrimos2 = this.getClass().getResource("Character_Primos02.png");
        urlPrimos3 = this.getClass().getResource("Character_Primos03.png");
        urlPrimos4 = this.getClass().getResource("Character_Primos04.png");
        urlPrimos5 = this.getClass().getResource("Character_Primos05.png");
        
        //Agrero imagenes de boss Primos
        urlGus1 = this.getClass().getResource("Character_GusFring01.png");
        urlGus2 = this.getClass().getResource("Character_GusFring02.png");
        urlGus3 = this.getClass().getResource("Character_GusFring03.png");
        urlGus4 = this.getClass().getResource("Character_GusFring04.png");
        urlGus5 = this.getClass().getResource("Character_GusFring05.png");
        
        //Agrego imagenes de boss Welker
        urlWelker1 = this.getClass().getResource("Character_Welker01.png");
        urlWelker2 = this.getClass().getResource("Character_Welker02.png");
        urlWelker3 = this.getClass().getResource("Character_Welker03.png");
        urlWelker4 = this.getClass().getResource("Character_Welker04.png");
        urlWelker5 = this.getClass().getResource("Character_Welker05.png");
        
        //Agrego imagenes de boss Walter
        urlWalter1 = this.getClass().getResource("Character_Heisenberg01.png");
        urlWalter2 = this.getClass().getResource("Character_Heisenberg02.png");
        urlWalter3 = this.getClass().getResource("Character_Heisenberg03.png");
        urlWalter4 = this.getClass().getResource("Character_Heisenberg04.png");
        urlWalter5 = this.getClass().getResource("Character_Heisenberg05.png");
        
        //agrego opcion de ser escuchado por el teclado
        addKeyListener(this);
    }