Gosu – Ruby Gem (Game application in Ruby)

Gosu – Game Application in Ruby:

1. Installation:

>gem install gosu

2. code:

begin

  # In case you use Gosu via RubyGems.

  require ‘rubygems’

rescue LoadError

  # In case you don’t.

end

 

require ‘gosu’

 

class MyWindow < Gosu::Window

  def initialize

    super(640, 640,false, 100)

    self.caption = ‘jazzez’

  end

end

 

w = MyWindow.new

w.show

3. output

Output looks like

gosu

 

For more referrence,

http://www.libgosu.org/

Advertisements

One thought on “Gosu – Ruby Gem (Game application in Ruby)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s