Okay, then you're almost at the end! :)
You have to jump over the barrels, when you touch them, you lose!
You can also walk up ladders to avoid the barrels.
And then you need to find the right moment to jump over the barrels and reach Donkey King with the princess! :P