Skip to content
Classic Pong written in Ruby with Ruby 2D framework.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
lib
README.md Update README.md Nov 18, 2018
pong.rb

README.md

About

Classic pong game written in Ruby with the awesome ruby2d framework.

ruby_pong

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

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/pong.git

Play

cd pong
ruby pong.rb

Paddle control:

  • Left:
    • w: up
    • s: down
  • Right:
    • o: up
    • k: down
You can’t perform that action at this time.