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

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Events in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University, August 2008.
Flappy bird guide for Scratch
Helicopter Game Tutorial
A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Racing Car Game Using the keys to control a sprite.
When you click the forever button, then whatever is in it does its thing to make flappy go. All of these buttons make flappy go and die. When you press.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
A Scratch tutorial. Description: You have 6 bullets to shoot at 2 targets. Every time you hit any of them you get two extra bullets but the targets get.
Introduction to TouchDevelop
How to make Space Invaders
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Geometry. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions are.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Motion 3. Motion Block Motion blocks allow you to program the Sprite’s movement. You can move it to different location, rotate, move towards the mouse.
Buttons and Birds: Introduction to Interactive Events in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
TRIGGERS Triggers tell a script to start executing There are four types of triggers: When green flag is clicked When I am clicked When is pressed When.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.
Variables and Random Numbers Computer App Session 4.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Get Going On ….. Load the word file ‘Glossary’ and complete it. You will have homework today.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
University Learning in Schools Computing Games Programming Lesson 5.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Making a Flappy Birds Game PART 2 – MAKING THE BIRD FLAP AND FALL – AND DEVELOPING THE GAME FURTHER (ADDING ADDITIONAL CHARACTERS, GOODIES, ENEMIES AND.
ICT/COMPUTING RULES Only use software allowed by the teacher
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Scratch Programming Cards
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Broadcasting (Adding a new level)
Games Programming in Scratch
Scratch for Interactivity
How to work with your sprite
Spanish Mad libs with Scratch
Intro CS – Keyboard and mouse input
Exploring Computer Science Lesson 4-14
Creating Variables Output Logic flow Operators (More) Basic blocks
Sensing and Variables.
Lesson 1 Introduction to Scratch Basic blocks
Go to =>
Motion in Scratch 1.
ICT Gaming Lesson 3.
Building a Game in Scratch
Game Over Module 4 Lesson 2.
The coordinate system Susan Ibach | Technical Evangelist
Exploring Computer Science Lesson 4-14
Sensing and Variables.
Creating a Simple Game in Scratch
Scratch Racing.
CSC 221: Introduction to Programming Fall 2018
Lesson Eleven Moving Backgrounds.
Presentation transcript:

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

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

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.

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.

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.

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

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

Blocks you might need to use Data

Blocks you might need to use Events

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

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)

Blocks you might need to use Operators