@Override
    public void update()
    {
        move();
        fisic();
        nearMapBlocks = Main.sphereMapCollide(getX(), getY(), 5);
        for(Block bl : nearMapBlocks)
        	bl.updateSpr();
        if(getY()<=-16)//futura mapColision aqui
        {
            setY(getY()-16);
            inGround = true;
        }
        if(inGround)
        {
            
        }
        
        if(groundBlock != null)
        {
            setY(Math.round(getY()));
            if(getX()-groundBlock.getX()<-1 || getX()-groundBlock.getX()>1)
                groundBlock=null;
            
            gSpeed=0;
            
            if(justJump)
            {
                stats.setJumping(true);
                gSpeed=0.5;
                justJump = false;
                groundBlock = null;
            }
            else if(stats.getJumping())
            {
                stats.setJumping(false);
            }
        }
        else
        {
            if(gSpeed <= -0.8746)
                gSpeed=-0.8746;
            else
                gSpeed += stats.getGravity()*Time.getDelta();

        }
        inGround = false;
        spr.update();
    }