You have to move your mouse for the little line to move and if you hit the big red line the game ends.
Thanks to @scratch team thanks for the tips