def draw
begin
coord = vec2(0, 0) - @drawOffset
coord = vec2(coord.x % $size.x, coord.y % $size.y)
@img.draw(coord.x, coord.y, 0, @imgScale.x, @imgScale.y)
coord2 = coord - vec2($size.x, 0)
@img.draw(coord2.x, coord2.y, 0, @imgScale.x, @imgScale.y)
# c = 0xff333333
# draw_quad(0, 0, c, $size.x, 0, c, $size.x, $size.y, c, 0, $size.y, c, 0)
@creature.draw(self, @drawOffset)
rescue
puts "Error"
puts $!.backtrace
end
end
set JRUBY_OPTS=-Xcext.enabled=true
jgem install texplay
Building native extensions. This could take a while...
ERROR: Error installing texplay:
ERROR: Failed to build gem native extension.
c:/jruby-1.7.2/bin/jruby.exe extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
c:/jruby-1.7.2/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and
deprecated Config.
Errno::ENOENT: No such file or directory - uname
at file:/C:/jruby-1.7.2/lib/jruby.jar!/jruby/kernel/jruby/process_manag
er.rb:24
at file:/C:/jruby-1.7.2/lib/jruby.jar!/jruby/kernel/jruby/process_manag
er.rb:49
(root) at extconf.rb:66
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/jruby-1.7.2/bin/jruby
Gem files will remain installed in c:/jruby-1.7.2/lib/ruby/gems/shared/gems/gosu
-0.7.45 for inspection.
Results logged to c:/jruby-1.7.2/lib/ruby/gems/shared/gems/gosu-0.7.45/linux/gem
_make.out
jgem install gosu
Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
c:/jruby-1.7.2/bin/jruby.exe extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
c:/jruby-1.7.2/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and
deprecated Config.
Errno::ENOENT: No such file or directory - uname
at file:/C:/jruby-1.7.2/lib/jruby.jar!/jruby/kernel/jruby/process_manag
er.rb:24
at file:/C:/jruby-1.7.2/lib/jruby.jar!/jruby/kernel/jruby/process_manag
er.rb:49
(root) at extconf.rb:66
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/jruby-1.7.2/bin/jruby
Gem files will remain installed in c:/jruby-1.7.2/lib/ruby/gems/shared/gems/gosu
-0.7.45 for inspection.
Results logged to c:/jruby-1.7.2/lib/ruby/gems/shared/gems/gosu-0.7.45/linux/gem
_make.out
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill