fork download
  1. #coding:utf-8
  2. require "dxruby"
  3. require "./test2.rb"
  4.  
  5. phase = 0
  6. test2 = nil
  7. Input.set_repeat(40 , 20)
  8. Window.loop do
  9. exit if Input.keyDown? K_ESCAPE
  10. case phase
  11. when 0
  12. if Input.keyPush? K_A
  13. phase = 1
  14. test2 = Test2.new
  15. end
  16. when 1
  17. test2.update
  18. end
  19. end
  20.  
  21.  
Runtime error #stdin #stdout #stderr 0.06s 9928KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dxruby (LoadError)
	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from prog.rb:2:in `<main>'