top of page

Flappy Bird

Project Purpose: To create flappy bird game using Pinoo Minoo card.

Duration: 2 lessons

Age Group: 7 years and above

Achievements:

  • Learns the use of Pinoo Minoo card.

  • Develops game design skills.

  • Develops algorithmic skills.

  • Coding skills develop.

 

Materials to be Used: Scratch program, Pinoo Minoo Card, Two crocodile (crocodile) cables.

 

 

 

Materials Needed for Design: Cardboard, aluminum foil, glue gun, scissors

 

 

Project Construction:

 

We draw a picture of a medium-sized bird and a pipe on the cardboard and cut it out. This will be our gamepad. You can use another drawing if you wish.

We decorate the bird as we wish and make a rectangular hole in the body part.

  

Cover the rectangular part with aluminum foil.

By gluing the bird and the pipe on top of each other, we get a single design.

We take the pinoo minoo board and attach a cable to the ground part and another alligator cable to the space key.

 

We turn the back of the gamepad and attach the free end of the cable that we attached to the space key to one end of the aluminum foil that we filled in the rectangular space.

***The other end of the cable that we have attached to the ground will remain free.

 

We will use the scratch application for the coding part.

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, respectively, by clicking on the button "Choose the puppet from your computer".

 

In order to change the stage design, we click on the button on the left, select the decor from the library and add the decor named blue sky from the library. You can choose the stage design you want according to your imagination.

 

We choose the obstacle puppet and go to the disguises in the middle section. Click on the disguise and click the right mouse button and click on the copy option. We create three disguises.

 

We are changing the heights of the obstacle disguises we have added, as we will constantly want random obstacles to occur during the game.

 

We choose the Bird puppet and come to the series section. We want the game to start when the green flag is clicked, so we get the command from the events menu when the green flag is clicked.

 

 

We want the bird puppet to always be in the same position when the game starts. Therefore, we get the command x:-212 y:25 from the motion tab, where the numbers corresponding to x and y may vary for you.

Here we change the expressions corresponding to x and y to x: -202 y: 115.

 

We will enable the movement of the bird puppet using the space bar on the keyboard. Therefore, 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.

In order to check whether the spacebar is pressed or not, we get the block from the control tab, if not, and in the condition part, is the spacebar pressed from the detection tab? We place the code block. If the spacebar is pressed, let our puppet point upwards (ie, turn 70 degrees) and move 3 steps on the vertical (y) axis. For this, we take the command to turn 90 from the movement tab and update the number 90 to 70. In order for it to move, we take the command to increase y by 10 from the same tab and update the number 10 as 3.

 

For this, we take the command to turn 90 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 as -3. If our puppet hits the obstacle or the ground during the game, we want the puppet to say the game is over and the game to start. For this, we take the block if it is from the control tab and place the or command from the control tab in the condition section.

 

Or, we place the blog in the first box that is empty, from the detection tab, when the mouse arrow touches it, and click on the tiny arrow to change the word mouse arrow to obstacle.

In the second box, we place the command, did it touch the color, from the detection menu, and click the color box.  We select the background color of the scene with the cursor created by clicking.

If the condition is met, let the puppet say the game is over for 2 seconds and the game will stop. From the Appearance tab, Hello! We get the 2 sec command and Hello! We change the phrase to Game Over. To finish the game, we get the code block, let alone all of them, from the control tab.

***Let's click on the green flag and observe the movement of the bird puppet by pressing the spacebar on the keyboard.

  Let's click on the obstacle puppet. After pressing the green flag, the dummy will initially hide, then it will constantly change its disguise randomly and move horizontally (on the x-axis).

 

In order to hide the puppet after pressing the green flag, we get the command when clicking the green flag from the Events tab, and then we place the hide command from the view menu in its lower section. We start by getting the repeat command from the control tab so that the puppet will continuously duplicate at random intervals. We place the 1 second wait block from the control tab in it.

 

 

Instead of the 1 phrase of the 1 second wait block, we place a hold number block between 1 and 10 in the operations tab. We change the numbers 1 and 10 to 0.5 and 2. When the obstacle puppet creates its twin, it will first appear and then randomly disguise. For this, we take the command when I start as a twin from the control tab and place the command "see from the view menu" under it.

 

 

For random disguise, we get the code block for disguise obstacle1 from the view menu. We randomly place a number block between 1 and 10 for the disguise process from the operations tab. We change the numbers 1 to 10 as 1 to 3.

In order for the obstacle to always appear in a certain position, we take the command to go to the point x:312 y:25 from the movement tab, where the numbers corresponding to x and y may vary for you.

Here we have the expressions x and y corresponding to x: 250  We change it to y: 31.

 

In order for the obstacle puppet to move horizontally (in the x-axis), we get the command to repeat 10 times from the Control tab. We change the number 10 to 95 (95 is an average value here).

For horizontal movement, we get the command to increase x by 10 from the movement tab and change the number 10 to -5.

 

In order for all the twins created by the puppet not to appear on stage, each created twin must be deleted when its 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 on the green flag.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We connect our Pinoo minoo board to the computer with the connection cable. We hold the ground wire in our palms. We can start playing the Game by pressing the aluminum foil on the bird.

1.jpeg
2_17dae423-0d9a-4f29-a956-67debd32899b_480x480.jpg
3.JPG
4.jpeg
5.jpeg
6.jpeg
7.jpeg
8.jpeg
9.jpeg
10.jpeg
11.JPG
12.JPG
13.JPG
14.JPG
15.JPG
16.JPG
17.JPG
20.JPG
24.JPG
26.JPG
28.JPG
29.JPG
30.JPG
31.JPG
32.JPG
33.jpeg
bottom of page