An open API service indexing awesome lists of open source software.

https://github.com/tiagopog/pong

Classic Pong written in Ruby with Ruby 2D.
https://github.com/tiagopog/pong

2d game game-development pong ruby ruby2d

Last synced: about 1 month ago
JSON representation

Classic Pong written in Ruby with Ruby 2D.

Awesome Lists containing this project

README

          

# About

Classic pong game written in Ruby with the awesome [ruby2d](http://www.ruby2d.com/) framework.

![ruby_pong](https://user-images.githubusercontent.com/760933/48669271-293d5e00-eae8-11e8-9359-a9a07005517f.gif)

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

# Install

Make sure you have installed:

* [simple2d](https://github.com/simple2d/simple2d):

```
brew tap simple2d/tap
brew install simple2d
```

* [ruby2d](https://github.com/ruby2d/ruby2d):

```
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