Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Gaming - Second Edition

You're reading from   Raspberry Pi Gaming - Second Edition Design, create, and play all kinds of video games on your Raspberry Pi computer

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784399337
Length 140 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Shea Silverman Shea Silverman
Author Profile Icon Shea Silverman
Shea Silverman
Arrow right icon
View More author details
Toc

Let's build a Flappy Bird clone!

Your first game is going to be a Flappy Bird clone. While this might seem like a complicated task, it really can be broken down to a few easy scripts.

Note

Flappy Bird is a great starting game. It has a clear objective, uses much of the Scratch functionality, is relatively simple to create, and you can use your imagination by drawing your own sprites, backgrounds, and pipes.

What kind of a game is Flappy Bird? It is a game where your goal is to keep on pressing a button to make a bird rise as it is constantly falling while navigating its way through the pipes of varying heights that are coming at it.

It can be broken down as follows:

  • Every button press makes the bird go up on the y axis
  • Every second the button isn't pressed the bird goes down the y axis
  • A pipe starts at the right end of the x axis and moves left toward the bird
  • When the pipe reaches the far left corner without touching the bird, you earn a point and the pipe disappears
  • If the bird touches...
You have been reading a chapter from
Raspberry Pi Gaming - Second Edition - Second Edition
Published in: Feb 2015
Publisher:
ISBN-13: 9781784399337
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime