rake-compiler
to build the source gem for OS X and Linux. The biggest upside here is that Gosu's directory structure is now more in line with other Ruby C extensions.brew install sdl2 libogg libvorbis
before installing the gem. On Linux, you'll have to install libSDL2-dev
or a similarly named package.Ruby.app
with Ruby 0.8.0 (preparations for this are in place).OpenAL32.dll
was custom-built to avoid a segmentation fault. Updating it to an unmodified 1.16.0 yesterday was probably a really stupid idea. Thanks for reporting this. Can you please try to replace OpenAL32.dll
in the gem directory with the 0.7.50 one? Does that fix the Song
error?super screen_width, screen_height, true
throws something like:ai.rb:30:in 'initialize': Invalid virtual resolution. (RuntimeError)
@font = Gosu::Font.new(self, "media/boxybold.ttf", 20)
causes following error:ERROR: failed to open 'media/boxybold.ttf'
ERROR: CreateFile failed
CreateFile
to fail.ERROR: CreateFileMapping failed
, not failed to open
)
Dir.pwd+"/media/boxybold.ttf"
so the path has to be right, but still no fonts for me. Alright then :(
Gosu::Song
works in C++. No surprise, it's a Ruby-only bug. :)
mouse_x
reaches 0, I can no longer do it. mouse_x
to the middle of the screen at some point, so the cursor could just keep moving. BUT, as it turns out, now manually setting cursor position in the middle counts as if it was physically moved to given point, so when that happens, character turns back to the angle he was facing when the cursor was at this position in the first place.last_mouse_x - mouse_x
in every update
cycle and then reset the cursor to the centre – why would this not work in the new version?turn
methodmouse_x
and all that.Tutorial.rb
and an iOS game to make sure everything still works, and there are so many parts of Gosu that are under-tested... :)
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill