Flappy Bird Game With Pinoo Minoo
Project Purpose: To create a flappy bird game using the Pinoo Minoo card.
Duration: 2 lessons
Age Group: 9 years and older
Learns the use of Pinoo Minoo card.
Improves the skill of creating game designs.
Improves the skill of setting up algorithms.
Improves coding skill.
Materials to be Used: Scratch program, Pinoo Minoo Card, two crocodile (alligator) cables
Materials Required for Design: Cardboard, aluminum foil, silicone gun, scissors
1. We draw a medium-sized bird picture and pipe on the cardboard and cut it. This will be our gamepad. You can also use another drawing if you wish.
2. We decorate the bird as we wish and drill a rectangular hole in the body section.
3. We cover the rectangular part with aluminum foil.
4. We get a single design by gluing the bird and the pipe on top of each other.
5. We take the Pinoo Minoo board and attach another crocodile cable to a cable space button in the ground.
6. We turn the back of the gamepad and attach the free end of the cable that we attach to the space button to one end of the aluminum foil
that we fill the rectangular space.
*** The other end of the cable we attach to the ground will remain idle.
7. We will use scratch application for the coding part.
8. In the coding part, we will first design the game.
For this, we delete the cat by clicking the right mouse button on the cat puppet. Then we add bird and obstacle puppets sequentially by clicking the select puppet from your computer button.
9. To change the stage design, we click on the select the decoration from the library button on the left and add the decor named blue sky from the library.
You can choose the stage design you want according to your imagination.
10. We choose the obstacle puppet and move on to the disguise section in the middle.
We click on the costume and click the right button of the mouse and click on the duplicate option. We create three disguises.
11.Since we want to create random obstacles during the game, we change the height of the obstacle disguises we add.
12. We select the bird puppet and come to the series section.
We want the game to start when the green flag is clicked, so when the green flag is clicked from the Events menu, we get the command.
13. We want a puppet to always be in the same position when the game starts. That's why we get the x: -212 y: 25 command from the motion tab, where the numbers corresponding to x and y may differ from you.
Here we change the expressions corresponding to x and y to x: -202 y: 115.
14. We will move the bird puppet by using the space key on the keyboard, so we need to constantly check whether the space key on the keyboard is pressed.
We start by getting the repeat blog from the control tab.
15. In order to check whether the space key is pressed or not, we take the "if not" block from the Control tab and place the " is the space key pressed?" block in the Condition section from the Detection tab.
16. If the spacebar is pressed, our puppet should turn upwards (ie, rotate 70 degrees) and move 3 steps on the vertical (y) axis.
For this, we take the command to turn 90 direction from the movement tab and update the number 90 to 70.
In order to move, we take the increase y by 10 command from the same tab and update the number 10 as 3.
17. If the spacebar is not pressed, let a puppet point down (turn 130) and move -3 steps on the vertical (y) axis.
For this, we take the command return to 90 direction from the movement tab and update the number 90 to 130.
In order for it to move, we take the command to increase y by 10 from the same tab and update the number 10 to -3.
18. If our puppet hits an obstacle or the floor during the game, we want the puppet to say the game is over and the game will start.
For this, we take the block from the control tab, if any, and place the control tab or command in the condition section.
19. Or we place the blog in the first empty box from the detection tab, does it touch the mouse arrow and change the mouse arrow to block by clicking the little arrow.
In the second box, we place the "Did it touch the color" command from the detection menu and click the color box and select the ground color of the scene with the cursor.
20. If the condition is fulfilled, let the puppet say "game is over" for 2 seconds and stop the game. Click "say Hello! For 2 sec" command and change the phrase" Hello!’’ to "Game Over ".
To finish the game, we take the "stop all" code block from the control tab.
*** Let's click on the green flag and observe the movement of a puppet by pressing the spacebar on the keyboard.
21. Click on the obstacle puppet. After the green flag is pressed, the puppet will initially be hidden, then it will disguise continuously and move horizontally (in the x-axis).
22. After the dummy green flag is pressed, we get the command when the green flag is clicked from the
Events tab to hide it, and then we place the hide command from the View menu in the lower part.
23. In order for the puppet to duplicate at random intervals continuously, we start by taking the continuous repeat command from the Control tab.
We place the 1 second wait block in the Control tab.
24. Instead of the 1 phrase of the ‘’wait 1 sec’’ block, we place a keep a number block between 1 and 10 from the
Operations tab, change the numbers 1 to 10 to 0.5 and 2.
25. When the obstacle puppet creates its twin, it will first appear and then disguise randomly. For this, when I start as a twin from the Control tab, we take the command and place the ‘’view’’ command from the View menu.
26. For random disguise, we get the code block to disguise as barrier1 from the View menu.
For the disguise process randomly, we place a block between 1 and 10 from the Operations tab, and change the numbers 1 to 10 to 1 and 3.
27. In order for the obstacle to always appear in a certain position, we take the command to move to x: 312 y: 25 from the Movement tab, where the numbers corresponding to x and y may differ.
Here we change the expressions corresponding to x and y to x: 250 y: 31.
28. We get the repeat command 10 times from the Control tab so that the obstacle puppet can move horizontally (on the x axis). We change the number 10 to 95. (95 is an average value here).
For horizontal movement, we take the command to increase x by 10 from the movement tab and change the number 10 to -5.
29. In order for all twins created by the puppet not to appear on the stage, each twin created must be deleted when their mission is over.
For this, we get the command to delete this twin from the control tab.
Let's check if there are any problems with the operation of the game by clicking the green flag.
30. We connect our Pinoo Minoo board to the computer with a connection cable. We hold the ground wire in our palms. We can start playing the Game by pressing the aluminum foil on the bird.
WITH PINOO SETS, CHILDREN CAN DO HUNDREDS OF PROJECTS WITH MATERIALS THAT CAN COMFORTABLY AT HOME.