fork download
  1. require "dxruby"
  2.  
  3. phase = 0
  4. Window.loop do
  5. case phase
  6. when 0
  7. phase = 1 if Input.keyPush? K_RETURN
  8. Window.drawFont 50 , 50 , "タイトル" , Font.default
  9. when 1
  10. phase = 9 if Input.keyPush? K_RETURN
  11. Window.drawFont 50 , 50 , "本編" , Font.default
  12. when 9
  13. exit if Input.keyPush? K_RETURN
  14. Window.drawFont 50 , 50 , "終わり" , Font.default
  15. end
  16. end
  17.  
Runtime error #stdin #stdout #stderr 0.05s 9880KB
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:1:in `<main>'