Learn Create Your Own Split Screen

Next Page

A bit of watching of Flappy Bird provides the following insights:
It's actually easier to say in code than in English:
function make_bird_tilt_appropriately() { if (bird.velocity_y < 0) { bird.angle= -15; // going up, point up } else if (bird.angle < 70) { // max downward tilt is 70 degrees bird.angle = bird.angle + 4; // going down, point more and more down } }

Have a good long look at the English and the Javascript above until you're happy they both say the same thing.