All you have to do is to tap on the screen to jump, avoid obstacles and move forward. But it is much much harder than it seems. You will face different and challenging obstacles as you progress. Also don’t forget about the side walls! They will keep getting closer to each other which means the longer you stay on an obstacle, the narrower the passage will get.
On PC: Use mouse
On Mobile: Touch