making a flappy birds game a introduction to making a flappy birds type game

Post on 23-Dec-2015

263 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

Creator• Dong Nguyen

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

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

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)

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

Import Sprite into Scratch

Step 2 contdYou now have your own

character in Scratch.You can delete the Cat!

Time to start coding

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.

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!

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.

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

top related