@Override
    public void update(double extrp, int x, int y, double speed)
    {
        data.setOffsetY(y);

        for (int i = 0; i < cloudsNumber; i++)
        {
            this.x[i] += this.speed[i] * extrp;
            this.x[i] = UtilMath.wrapDouble(this.x[i], 0.0, sprite.getWidth());
        }
    }
@ Override public void update ( double extrp , int x , int y , double speed ) { data . setOffsetY ( y ) ; for ( int i = 0 ; i < cloudsNumber ; i ++ ) { this . x [ i ] += this . speed [ i ] * extrp ; this . x [ i ] = UtilMath . wrapDouble ( this . x [ i ] , 0.0 , sprite . getWidth ( ) ) ; } }
/*
BackgroundComponent