top of page
באננר100.png
באנרפליפי.png

24

Flappy Bird  

What will you learn in this lesson? 

  • Build a Flappy Bird game:
    Create a game where the player controls a bird trying to fly between pairs of green vertical pipes without touching them.

     

  • Use the "message" block: Learn how to use the "message" block for creating
    and managing the game.


     

  • Use the "Start on Bump" block: Learn how to detect when the bird touches pipes
     

  • Use the "Start on Tap" block: Learn how to control bird hight using the mouse cursor.

     

  • Use the "Go to Page" block: Learn how to move between different scenes in the game.

לבנת מסר למשק.png
נוגעבדמותקופץ.png
דמות נוגעת בדמותקופץ.png
מעבר שקף.png
46652233.png
action.png

Draw in the graphic editor:

  • 3 sprites of columns with a rectangle above them

  • 3 sprites of columns with a rectangle below them

image.png
action.png

It is important to give each sprite a name

image.png
image.png
action.png

Add the background "Savannah"

רקעפליפי.png
action.png
  • Remove the existing trees from the scene.

  • Add a brown rectangle at the bottom of the screen, likely to represent the ground

רקעגיפ.gif
action.png

Add the bird sprite

2023-11-04_19-02-01.png
action.png

Add by drawing triangular sprites "up" and "down"

image.png
action.png

Place the 9 pipes sprites as they are positioned in the picture

רקעפליפימירו.png
action.png

Build the left-scrolling script for all the pipes sprites

תסריט עמוד.png
action.png

Build the script for the bird

תסריט ציפור.png
action.png

Build the 'control script' with 2 arrows that control the bird's height

image.png
תסריט משולשים.png
action.png

Add new slide number 2 "End"

image.png
action.png

Add the "Savannah" background to slide 2

image.png
action.png

Add the 2 titles:

  • "end" 

  • "to restart click on the character of Tick"

action.png

Add a script to the 'Tic' sprite in slide 2 so that touching the 'Tic' sprite will restart the game.

תסריטהתחלמחדש.png
action.png

Run the script by clicking on the green flag. Use the arrows at the bottom of the screen to control the height of the bird

flipy.gif
bottom of page