samples/hello_world/hello_dsl.rb in ray-0.1.0.pre1 vs samples/hello_world/hello_dsl.rb in ray-0.1.0

- old
+ new

@@ -7,14 +7,14 @@ register do add_hook :quit, method(:exit!) end scene :hello do - @font = Ray::Font.default + @text = text "Hello world!", :size => 30 render do |win| - @font.draw("Hello world", :on => win, :at => [0, 0], :size => 12) + win.draw @text end end - push_scene :hello + scenes << :hello end