Inspired by Flappy Bird, but with a Flying Pig!
Ruby JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

#Flappy Pig

Live!

Inspired by the addicting game, Flappy Bird, but with a flying Pig! Built with JavaScript and HTML5 Canvas.

Features

  • Dynamically updates score
  • Randomly generates pipes/obstacles
  • Utilizes event listener for spacebar to start the game and move the character
  • Leaderboard allows players to share their score
  • Uses AJAX to create new leaderboard scores and to render leaderboard scores
  • Velocity is calculated to allow for smooth transitions/flying

Audio from myinstants.com. Graphics created in Photoshop by me.