require 'dxruby' class MySprite < Sprite @@image = Image.new(100, 100, C_WHITE) def initialize super self.x = 0 self.y = 100 self.image = @@image end def update self.x += 1 endend s = MySprite.new Window.loop do s.update s.drawend
Standard input is empty
Standard output is empty
/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>'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!