Skip to content

tiagopog/pong

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages