Skip to content

jphenow/pong

 
 

Repository files navigation

Running

Open a terminal app like Terminal.app or GTerm and run:

git clone https://github.com/jphenow/pong.git
cd pong
ruby pong.rb

Try Customizing!

open my_config.rb and tinker with the defaults

class MyConfig < DefaultConfig
  init do
    pong.width = 768
    pong.height = 576

    # Color can be any of:
    #
    # :black
    # :gray
    # :white
    # :aqua
    # :red
    # :green
    # :blue
    # :yellow
    # :fuchsia
    # :cyan
    ball.color = :red
    ball.size = 10
    ball.speed = 6

    paddle.color = :white
    paddle.width = 16
    paddle.height = 96
    paddle.speed = 6
  end
end

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%