Sha256: 8b6dd66fbc125ee978594e50dac8f1ccafe1f76d82db84247d5cddc364e8aed2
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
$: << File.expand_path(File.dirname(__FILE__) + "/../../lib") $: << File.expand_path(File.dirname(__FILE__) + "/../../ext") def path_of(res) File.expand_path(File.dirname(__FILE__) + "/../../spec/res/#{res}") end require 'ray' Ray::Game.new("Hello world!") do register do add_hook :quit, method(:exit!) end scene :hello do @font = font(path_of("VeraMono.ttf"), 12) render do |win| @font.draw("Hello world", :on => win, :at => [0, 0]) end end push_scene :hello end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ray-0.0.1 | samples/hello_world/hello_dsl.rb |