Sha256: ce15e50a90df565a476bf33dfaf609584c4353d4c804db0a3724c2452acee470
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
#!/usr/bin/env ruby # # groonga-logo.png, groonga-icon-full-size.png: # CC BY 3.0 - (c) The Groonga Project # # mroonga-logo.png, mroonga-icon-full-size.png: # CC BY 3.0 - (c) The Mroonga Project # # rroonga-logo.png, rroonga-icon-full-size.png: # CC BY 3.0 - (c) The Ranguba Project # # nroonga-logo.png, nroonga-icon-full-size.png: # CC BY 3.0 - (c) The Nroonga Project # # droonga-logo.png, droonga-icon-full-size.png: # CC BY 3.0 - (c) The Droonga Project # require "bricks_meet_balls" BRICK_IMAGES = [ "groonga-logo.png", "mroonga-logo.png", "rroonga-logo.png", "nroonga-logo.png", "droonga-logo.png", ] BALL_IMAGES = [ "groonga-icon-full-size.png", "mroonga-icon-full-size.png", "rroonga-icon-full-size.png", "nroonga-icon-full-size.png", "droonga-icon-full-size.png", ] width = 640 height = 480 num_of_rows = 10 num_of_columns = 8 num_of_balls = 29 base_dir = File.expand_path(File.dirname(__FILE__)) ball_images = BALL_IMAGES.collect do |ball_image| File.join(base_dir, ball_image) end brick_images = BRICK_IMAGES.collect do |brick_image| File.join(base_dir, brick_image) end window = BricksMeetBalls::Window.new(width, height, num_of_rows, num_of_columns, num_of_balls, ball_images, brick_images) window.show
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bricks_meet_balls-0.0.2 | examples/groonga/main.rb |