Gosu 0.7.25 is out and features (among really minor fixes):
• All: Fixed Gosu::Image#to_blob/ImageData?::toBitmap
• Ruby: Now seeding Gosu::random with the system time on startup
• Ruby: Added missing scale(x, y, around_x, around_y) (thanks to Spooner)
• Ruby: Added Image#save(fn)
• All: Un-deprecated button_id_to_char/char_to_button_id (and fixed them on 64-bit OS X)
I thought I would never see the last feature coming back, why did you change your mind?
Can we now save images with Gosu + Ruby? Nice...
I found out how to implement it for 64-bit OS X, but at the same time, I don't have time to rework the feature the way I think it should be reworked. There is still no way to get the name of a key (for option screens), or to serialize button ids across machines. :(
All brilliant stuff that I'll get plenty of use out of in my project. Thanks!
> • All: Un-deprecated button_id_to_char/char_to_button_id (and fixed them on 64-bit OS X)
Oh, so it might not actually have been my binding that screwed it up? Must re-check that :)
I would like to upgrade Gosu (I'm using a really old version and there are lots of new features I would love to get) but there is one question I don't find the answer when I read all modifications.
Did you fix the opengl textures problem, when we want to use coordinates like 0.2 from cropping or 3.0 for repetition ?
You solved that problem in my version (I don't know how to figure out which one I have) but when I last upgrade it, it didn't work properly.
Thanks a lot
I think it works for textures larger than 64x64 which are powers of two and quadratic. And you need to create them with "tileable" set to true.
But you can just update the gem to try and see. If it's broken, you can continue development by deleting the new gem version. gem doesn't delete old versions when updating.
This will be cleaner once we have the new 0.8 Image constructor.
Thanks for the very quick reply !
I can't install the Gem (I'm using the .so version) because I get a Gem::RemoteSourceException. Any place where I can get the .gem and install it locally ?
Thanks in advance
No idea, I just call "gem push" and it's available magically (to me). But one thing to try is to upgrade your rubygems installation.
I already tried... it just doesn't work. Do you have a place where I can download directly the gem file ?
Sorry for the late feedback, but unfortunaltly, the 0.7.26.1 version doesn't work properly with textures repetition :(
I think I'm gonna switch to full 2D, at least Gosu is on 2D the greatest lib I've ever seen.
Powered by mwForum 2.29.0 © 1999-2013 Markus Wichitill