Download
User Rating: 0.3/5 ( 2 votes)
Flappy bird is an easy-to-embed single-line JavaScript plugin that will add this epic game to your webpage.
Flappy Bird is a side-scrolling mobile game featuring 2D retro style graphics. The objective is to direct a flying bird, which moves continuously to the right, between each oncoming set of pipes without colliding with them, which otherwise ends the game. The bird briefly flaps upward each time the player taps the screen. If the screen is not tapped, the bird falls due to gravity. The player is scored on the number of pipe sets the bird successfully passes through, with medals awarded for the score.
Source: troevkube.ru
1. INCLUDE JS FILES
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src='flappy-assets/script/FlappyBird.min.js'></script>
2. HTML
<div class="container"></div>
3. JAVASCRIPT
window.fbAsyncInit = function() {
FB.init({appId: '704001729620899', status: true, cookie: true,xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
// CALL PLUGIN WITH BEGIN PARAMETERS
$('.container').FlappyBird({
// total : 8,
// step : 300,
// innerColumn: 170
});