Skip to content
Flappy Bird written in Ruby with Ruby 2D.
Ruby
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/images
lib
README.md
main.rb

README.md

About

Flappy Bird game written in Ruby with the awesome ruby2d framework.

ruby2d_flappy_bird_3

Note: the low frame rate here is due to the GIF recording not the game itself.

Goals

  • Learn more about game physics and collision detection;
  • Separate game logic from graphics.

Todo

  • Improve opening scene;
  • Improve game over scence (add medals and best score);
  • Improve bird's flight and fall animations.

PRs are welcome :-)

Install

Make sure you have installed:

brew tap simple2d/tap
brew install simple2d
gem install ruby2d

Then clone the source code to your local:

git clone https://github.com/tiagopog/flappy_bird.git

Play

cd flappy_bird
ruby main.rb

Bird control:

  • Jump: space bar
  • Restart (game over): space bar
You can’t perform that action at this time.