Permalink
Browse files

Hello world

  • Loading branch information...
0 parents commit 30bab2c0e6b1c0076c8d348f27186019389050e7 @practicingruby practicingruby committed Sep 25, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 game.rb
11 game.rb
@@ -0,0 +1,11 @@
+# from http://mon-ouie.github.com/projects/ray.html
+
+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

0 comments on commit 30bab2c

Please sign in to comment.