The instructions are given in the game.
I used a script from a tutorial in 'tips'of Scratch 2. I made a project following that tutorial and then modified it to make this game