Sha256: bb027b3335f6884b2923584b2ae1ffd5b61a968429d1f91a9cf2cbd372206f62
Contents?: true
Size: 386 Bytes
Versions: 4
Compression:
Stored size: 386 Bytes
Contents
$:.unshift File.expand_path(File.dirname(__FILE__) + "/../../lib") $:.unshift File.expand_path(File.dirname(__FILE__) + "/../../ext") require 'ray' Ray.game "Hello world!" do register { add_hook :quit, method(:exit!) } scene :hello do @text = text "Hello world!", :angle => 30, :at => [100, 100], :size => 30 render { |win| win.draw @text } end scenes << :hello end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | samples/hello_world/text.rb |
ray-0.2.0 | samples/hello_world/text.rb |
ray-0.1.1 | samples/hello_world/text.rb |
ray-0.1.0 | samples/hello_world/text.rb |