Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

12
Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME

Transcript of Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Page 1: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Making a Flappy Birds GameA INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME

Page 2: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Creator• Dong Nguyen

Page 3: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

You could create your own flappy birds type game – but for your school!

First, think of a main character.

If you’re really advanced, you can create this using photoshop or Fireworks, but for the sake of time, you could also just make it in scratch itself (or Power Point).

Suggestions: Get a stick man and your school’s logo. See Next slide

Step 1

Page 4: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Make your Own Character

Step 1Get a Picture of a Stickman from the Internet or Clipart

Locate your School’s logo and paste it in too

Page 5: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Make your Own Character

Step 1

Right Click (selecting both images) and click SAVE as

Picture

Save your Image (as a .jpeg file) in your Documents.

Arrange your pictures on top of each other (or however

you want)

Page 6: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Import Sprite into Scratch

Step 2

Click on “Import”

Click on “Computer” then the “N” Drive to find your image.

Click on Paint New Sprite

Page 7: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Import Sprite into Scratch

Step 2 contdYou now have your own

character in Scratch.You can delete the Cat!

Page 8: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Time to start coding

Page 9: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

The Mechanics of Flappy Bird

• Flappy Bird is based around a simple interaction:

press screen to flap wings. But it is clear that Nguyen has spent time working out the

exact vertical lift achieved by this single input; just as he has got the gap between pipes exactly right.

Page 10: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Creating Flappy Birds in Scratch

A good way to introduce yourself to Programming is to use SCRATCH.

Scratch was created by MIIT to get young people (as young as five years old!) interested in the concept of programming and how logic sequences can get sprites to do clever things.

Can Flappy Birds be created in Scratch ? Yes!

Have a look at the next slide for a website that shows a screenshot of how it has already been made!

Page 11: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

To start with, make a sprite and create the following code blocks:

This simply makes your sprite go up (Y by +10) when you

press space.

Page 12: Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.

Challenge #1

Flappy Birds works like this.

1.The moment you press START (or the green flag) the Bird KEEPS FALLING TO THE GROUND

2.When you Press Space (or any other key you choose) the Bird then goes up

On the previous slide, you have done Part 2. Can you now add the code blocks to make Part 1 work