Sha256: faea8916cd8b0910b41dc5242d07f32c9e243aaaba9d97005b6443d10a818c34
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 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 :rotation do @text = text "Hello world!", :at => [100, 100], :size => 30 animations << rotation(:of => 360, :duration => 1).start(@text) render { |win| win.draw @text } end scenes << :rotation end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | samples/animation/rotation.rb |
ray-0.2.0 | samples/animation/rotation.rb |
ray-0.1.1 | samples/animation/rotation.rb |
ray-0.1.0 | samples/animation/rotation.rb |