public void Draw(Graphics2D g2d)
    {
        g2d.setColor(Color.white);
       // g2d.drawString("Coordonnées du Pou Pidou" + x + " : " + y, 5, 15);
        
        // If the rocket is landed.
        if(landed)
        {
            g2d.drawImage(rocketLandedImg, x, y, null);
        }
        // If the rocket is crashed.
        else if(crashed)
        {
            g2d.drawImage(rocketCrashedImg, x, y + rocketImgHeight - rocketCrashedImg.getHeight(), null);
        }
        // If the rocket is still in the space.
        else
        {
            // If player hold down a W key we draw rocket fire.
            //if(Canvas.keyboardKeyState(KeyEvent.VK_SPACE))
                //g2d.drawImage(rocketFireImg, x + 12, y + 66, null);
            if ( curentImage == 0 )
                if (derniereDirection=='d') g2d.drawImage(rocketImg, x, y, null);
                else g2d.drawImage(rocketImgg, x, y, null);
            if ( curentImage == 1 ) 
                if (derniereDirection=='d') g2d.drawImage(rocketImg1, x, y, null);
                else g2d.drawImage(rocketImg1g, x, y, null);
            if ( curentImage == 2 ) 
                if (derniereDirection=='d') g2d.drawImage(rocketImg2, x, y, null);
                else g2d.drawImage(rocketImg2g, x, y, null);
        }
    }