Create a Curved Moving Rope

Hi, I want to create a scene like this:


as you can see in this scene there is a table and there are two pulleys at its sides and there is going to a car in the middle of this table. What I a wanna do is to be able to pull one side of the rope make the other side go up. I can move the car in the middle of the table but my problem is with the rope itself. my problem is that I don’t know how the pulling effect should work? should I create a sprite for the right hand side rope and then resize it? the same problem goes with the left side rope, it should go up when the right hand side is pulled but I don’t know the logic behind it. Should I use a physics engine? (I prefer not to).

To simplify things, I would cut the rope into horizontal and vertical pieces on each side, and then scale the pieces in x- and y- direction respectively, so the whole scene could be animated by the following components:

  1. x-position of the car
  2. y-position of the left bucket
  3. y-position of the right bucket
  4. x-scale of the left horizontal rope
  5. y-scale of the left vertical rope
  6. x-scale of the right horizontal rope
  7. y-scale of the right vertical rope

Thank you very much for your answer.