Presentation is loading. Please wait.

Presentation is loading. Please wait.

Flappy bird Demo: http://flappybird.io/ Lesson 5 Flappy bird Demo: http://flappybird.io/

Similar presentations


Presentation on theme: "Flappy bird Demo: http://flappybird.io/ Lesson 5 Flappy bird Demo: http://flappybird.io/"— Presentation transcript:

1 Flappy bird Demo: http://flappybird.io/
Lesson 5 Flappy bird Demo:

2 Features to be noticed How to give players the feeling that the bird is flying forward? Movement of the bird: Only goes up and down Movement of the background: Moves from right to left

3 Exercise 5 (Flappy bird)
Description: The bird flies up and down. When the user presses the “space” bar, it goes up. Otherwise, it goes down (like free falling). There are some obstacles (blocks) with openings at different positions. These obstacles move from right to left. When the bird successfully passes an obstacle, the player scores 1 point. The game is over when the bird touches any of the obstacles or falls onto the ground.

4 Exercise 5 (Flappy bird)
Bird sprite: 2 costumes (so that it looks like flying) Fix the x-position of the bird. Use a variable to keep track of how the y-position of the bird should be changed. When “space” key is pressed, it goes up. Otherwise, it goes down. The game will only start when the player first presses “space” key. The game is over when the bird touches any of the obstacles or falls onto the ground.

5 Exercise 5 (Flappy bird)
Obstacle sprite: (You will need to make clones of it so that the screen does not look so empty.) The sprite has different costumes. Every time when it appears on the screen, a random costume is chosen. It moves from right to left. When it touches the edge, it fades out. This process will only end when the game ends. When the obstacle has moved to a certain position, a clone is created. When the bird passes an obstacle successfully, the player scores 1 point.

6 Blocks you might need to use
Motion Change the x-coordinate of the sprite by 10 units Change the y-coordinate of the sprite by 10 units The x-coordinate of the sprite The y-coordinate of the sprite

7 Blocks you might need to use
Looks Disappearing the sprite gradually Set the colour of the sprite Set the size of the sprite

8 Blocks you might need to use
Data

9 Blocks you might need to use
Events

10 Blocks you might need to use
Control Stop (part of) the program. The following codes are done when a clone is created. Create a clone Delete the clone

11 Blocks you might need to use
Sensing (if you put this in sprite A) When sprite A touches (an object)… When (a key) is pressed, sprite A will… The value of (something) of (some sprite)

12 Blocks you might need to use
Operators


Download ppt "Flappy bird Demo: http://flappybird.io/ Lesson 5 Flappy bird Demo: http://flappybird.io/"

Similar presentations


Ads by Google