Flappy Bird Physics Is Real Life?

If you don’t already know, Flappy Bird is the hot new mobile game right now. The premise is simple: navigate the bird through the gaps between the green pipes. Tapping the screen gives a slight upward impulse to the bird. Stop tapping and the bird plummets to the ground. Timing and reflexes are the key to Flappy Bird success.

This game is HARD. It took me at least 10 minutes before I even made it past the first pair of pipes. And it’s not just me who finds the game difficult. Other folks have taken to Twitter to complain about Flappy Bird. They say the game is so difficult, that the physics must be WRONG.

https://twitter.com/NurulAkiller/status/428892206754037760

https://twitter.com/MadsEltonNilsen/status/428794101899616256

https://twitter.com/ThatPuckBeaut/status/428781313433149440

https://twitter.com/garyscott_/status/428763347794665472

https://twitter.com/La_Tayy/status/428689724425785344

https://twitter.com/Bella_Bonita_/status/428680939326017536

https://twitter.com/maaddawwg/status/427833802140815361

https://twitter.com/184bader/status/428541838283116544

https://twitter.com/ImChase_WutIDK/status/428532979192049664

https://twitter.com/veeedoh/status/428419628600410112

 

So, is the physics unrealistic in Flappy Bird?

Sounds like a job for Logger Pro video analysis! I used my phone to take a video of Flappy Bird on my iPad. To keep the phone steady, I placed it on top of a ring stand with the iPad underneath.

IMG_20140130_141424614

(I’ve uploaded several of the videos here if you’d like to use them yourself or with students: Flappy Bird Videos.)

Then I imported the videos into Logger Pro and did a typical video analysis by tracking Flappy’s vertical position in the video. Sure enough, the upside-down parabolic curves indicate Flappy is undergoing downward acceleration.

FlappyBirdPosition

But do the numerical values represent normal Earth-like gravity or insanely hard Jupiter gravity? In order to do this, we need to (1) set a scale in the video so that Logger Pro knows how big each pixel is in real life and (2) determine the slope of Flappy’s velocity-time graph while in free fall, which is equal to the gravitational acceleration.

The only thing we could realistically assume is the size of Flappy Bird. If we assume he’s as long as a robin (24 cm), then the slope of the velocity-time graph is 9.75 m/s/s, which is really close to Earth’s gravitational acceleration of 9.8 m/s/s. Flappy Bird is REAL LIFE.

FlappyBirdAcceleration

So then why is everyone complaining that the game is unrealistic when, in fact, it is very realistic? I blame Angry Birds and lots of other video games. Repeating the same video analysis on Angry Birds and assuming the red bird is the size of a robin (24 cm), we get a gravitational acceleration of 2.5 m/s/s, which only 25% of Earth’s gravitational pull.

AngryBirdsRobin

In order to make Angry Birds more fun to play, the programmers had to make the physics less realistic. People have gotten  used to it, and when a game like Flappy Bird comes along with realistic physics, people exclaim that it must be wrong. As one of my students notes:

 

UPDATE 31 Jan 2014:
Inspired by a tweet from John Burk,

we made a video showing Flappy Bird falling at the same rate as a basketball:

Here’s what I did: We determined from the analysis above that Flappy Bird is about 24 cm across. Conveniently, basketballs are also about 24 cm across. So I had my physics teacher colleague Dan Longhurst drop a basketball so I could video it with my iPad. Dan just needed to be the right distance away from the camera so that the size of the basketball on the iPad screen was the same size as Flappy Bird on the screen (1.5 cm). Next, I played the basketball drop video and Flappy Bird on side-by-side iPads and recorded that with my phone’s camera. Once I got the timing right, I uploaded the video to YouTube, trimmed it, made a slow motion version in YouTube editor, then stitched the real-time and slow motion videos together to create the final video you see above.

UPDATE 1 Feb 2014: While the gravitational acceleration in Flappy Bird is realistic, the impulse provided by the taps are NOT realistic. Here’s a velocity-time graph showing many taps. When a tap happens, the velocity graph rises upward:

FlappyBirdConstantPostTapVelocity

As you can see, no matter what the pre-tap velocity (the velocity right before the graph rises up), the post-tap velocity is always the same (a bit more than 2 m/s on this scale). This means that the impulses are not constant. In real life, the taps should produce equal impulses, which means that we would see that the differences between pre- and post-tap velocities are constant.

TL;DR: Is the physics in Flappy Bird realistic? Yes AND no.
YES: The gravitational pull is constant, producing a constant downward acceleration of 9.8 m/s/s (if we scale the bird to the size of a robin).
NO: The impulse provided by each tap is variable in order to produce the same post-tap velocity. In real life, the impulse from each tap would be constant and produce the same change in velocity.

UPDATE 1 Feb 2014 (2): Fellow physics teacher Jared Keester did his own independent analysis and shares his findings in this video:

 

33 responses to “Flappy Bird Physics Is Real Life?

  1. Awesome work. I had no idea robins were so big…
    This will be a great inquiry activity as a comparison vs. Angry Birds.

  2. Pingback: Day 99: Flappy Bird and Logger Pro | whiteley180

  3. What about inertia and momentum? That’s where it feels unrealistic.

    • Pete,
      I just posted an update analyzing the impulse from each tap. You’re right, it isn’t realistic. Each tap produces the same post-tap velocity, rather than the same change in velocity.

      • From a coding perspective, this is because the acceleration is constant, but when you tap, it sets the velocity to the same value every time.

        Every game tick, the value for acceleration is added to the value for velocity, which is then in turn added to the position value. The following pseudocode is being run in a loop essentially:

        acceleration = -1
        velocity = velocity + acceleration
        if(tapped) velocity = 10
        position = position + velocity
        draw bird

        This is why it feels unrealistic, because the tap directly sets the velocity with no regard to what the velocity was before.

      • rdm_box,

        You’ve nailed it. My next project is to write a program in VPython that simulates Flappy Bird using both types of impulses — the “velocity reset” type that’s in the game and a “velocity change” type that’s consistent with real life.

  4. You’re really awesome, Frank.

  5. Superb analysis. This one post should be obligatory reading/viewing for every science student. Don’t accept. Don’t dismiss. CHECK IT!

  6. Pingback: Day 105: Flappy Bird Physics | Physics180

  7. I appreciate you writing my lesson plan for me! Used Flappy Bird physics to great end yesterday and today: http://mgolding180.wordpress.com/2014/02/04/day-105-flappy-bird-physics/.

  8. What about air resistance / aerodynamics? Shouldnt a bird with spread wings not accelerate at 9 m/s?

    • Hi John,
      You’re right. A real bird in flight also experiences lift, drag, and thrust and therefore is not a true projectile. However, the physics mechanics in the game of Flappy Bird (and Angry Birds) treat the birds like projectiles, as my analysis shows.

  9. Pingback: Flappy Bird Flies Past 50 Million Downloads, Generates $50K Per Day | iPhone in Canada Blog - Canada's #1 iPhone Resource

  10. Pingback: How Flappy Bird’s physics are cheating you | BaciNews

  11. Just a game…. Doesn’t have to obey to laws of physics

  12. We are learning about this general topic in my Physics class. Yes, this game does seem unrealistic. It doesn’t take in the inertia and momentum concepts along with the velocity issues. Whether acceleration is constant and the velocity doesn’t change from the previous tap, the game should still take into consideration the change in velocity. Like you said before, the game treats the bird as a projectile. I think to make the bird more realistic, they should put in some extra additions to make the game more realistic, less difficult, and more fun!

  13. Pingback: Day 2.11 Flappy Birds | 180 Days of Mr. Wysocki's Classes

  14. Pingback: How Difficult is Flappy Bird?Any News from Everywhere

  15. Hi Frank,
    I am ecstatic that you have proven that their is a little bit of Physics in the game Flappy Birds. Its wonderful to know that you can play a game and learn and apply the laws of Physics at the same time without knowing. I would like to know are there other games out there that can be applied to science?

  16. Hi T’Keyan,

    The great thing about video games is that they become a new worlds for determining the laws of physics. Angry Birds is one game I’ve written about a few times (see the link up top in blog header). Angry Birds Space is good too. You should read Rhett Allain’s “Dot Physics” blog on Wired, he has many posts about video game analysis (Fruit Ninja, Angry Birds, etc).

    Another game which comes to mind is Refraction. It involves lenses and mirrors to bend and combine/split light. It has some good physics and some bad physics. The challenge for students would be to explain what’s right and wrong about the game.

    Glad you enjoyed the Flappy Bird analysis!

  17. Pingback: A Data-Driven Take on Flappy Bird’s Meteoric Success | dataworks

  18. Pingback: Physics and Video Games | Life of Mrs. Reilly

  19. Cool article!

    I can tell you how Dong did the fake jumping 🙂
    He simply reset the velocity to 0 immediately before he applied the impulse.

  20. This is fantastic! I am going to use this in my 8th grade math class. Could you share your data? I would love to have the kids analyze it.

  21. Pingback: Here’s why you can’t stop playing Flappy Bird | MMJ Spring 2014 Pairs Reporting Projects

  22. Pingback: How Big Is a Banana in Fruit Ninja? | Nagg

  23. Pingback: How Big Is a Banana in Fruit Ninja? | PJ Tec - Latest Tech News | PJ Tec - Latest Tech News

  24. Supriya Talpade

    Flappy bird is the most addictive game i ever played.

  25. Pingback: Making a DS Game in 2020 - Flappy Bird DS

Leave a reply to John Wayne Cancel reply