Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu News / Gosu 0.7.16, 0.7.17, 0.7.18 released
- By jlnr (dev) Date 2010-01-04 18:46 Edited 2010-01-04 18:49
Hey,

I released 0.7.16 silently last year, but it had a few little issues that I wanted to resolve before posting here. So now, let me introduce Gosu 0.7.17:

• Ruby: Gosu::milliseconds always returns a Fixnum now
• All: Added Gosu::TextInput#filter for customizing what can/will be entered
• Windows: Added an error message when running a windowed game on a too small desktop
• All: Added Gosu::Color::RED etc., for C++ and Ruby, deprecated Colors::red in C++
• Ruby: Added Gosu::MAX_TEXTURE_SIZE for banisterfiend ;)
• Ruby: Added support for stringio, socket and yaml (=syck.bundle) in RubyGosu App.app
• Ruby: Added enough experimental MacRuby support to run Tutorial.rb (you will need to build Gosu from source)

A lot of these items made bizarre internal monkey-patching necessary, especially with regards to SWIG and libGL on Linux. I hope I can clean that all up at some point. (If anyone knows why calling OpenGL functions at C++ initialization time causes a segfault on Linux, please let me know…)

Also, some places in the code are screaming "gigantic rewrite" already, but I don't want to go that route. Instead, I will try to hand out small releases like this and wait for reports that everything still works. I also made some changes to the packaging (Mac zip archive is C++ only, source tarball is Linux-only). And last but not least, I pushed all the gems using gemcutter.

Let me know if things still work, and if so on which platform/language. :)

And because I just thought it was a good read: http://www.indiegames.com/blog/2009/12/opinion_indie_game_design_dos.html
Reply
- By AmIMeYet Date 2010-01-04 20:00 Edited 2010-01-04 20:10
Ubuntu 9.10 (linux) ruby 1.9.1 gem compiled successfully.
It would seem you have removed Gosu::Button though.. That caused some breakage for my other games.

Hm.. In Tutorial.rb, it seems to error with Gosu::Sample.new:

>>ruby Tutorial.rbTutorial.rb:19:in initialize': wrong # of arguments(2 for 1) (ArgumentError)
>>>from Tutorial.rb:19:in
new'
>>>from Tutorial.rb:19:in initialize'
>>>from Tutorial.rb:95:in
new'
>>>from Tutorial.rb:95:in initialize'
>>>from Tutorial.rb:136:in
new'
>>>from Tutorial.rb:136:in `<main>'


This is the line:

>> @beep = Gosu::Sample.new(window, "media/Beep.wav")


Weird..
Reply
- By jlnr (dev) Date 2010-01-05 04:07
Ouch. I see. Actually I hoped Ruby would include gosu.rb, and from there gosu.so. gosu.rb would add patches for exactly the functionality you are missing.

By the way, this sucks. I try to follow a sane versioning model where I don't use long versions like 0.7.17.1 again, but now I have to bump everything to 0.7.18. Good thing I am not going to run out of natural numbers.

Also, I think I messed the release up in that the Windows version probably still has the old version number. Argh. :)

I'll wait for another day before I push 0.7.18 to fix it. If you want, you can manually include 'gosu/patches' at the top of your script to fix everything, but the Gosu::Button module is deprecated anyway. I just forgot to remove it from the examples for way too long.
Reply
- By ippa Date 2010-01-05 13:51
Chingu also got hit with the Gosu::Button thing, ye I took it from the examples and not the docs ;). Fixed now though. I wouldn't worry about the versions...
Reply
- By AmIMeYet Date 2010-01-05 14:07

>>you can manually include 'gosu/patches' at the top of your script to fix everything


ah yes, 'gosu/patches' works.

>>Actually I hoped Ruby would include gosu.rb, and from there gosu.so. gosu.rb would add patches for exactly the functionality you are missing.


I think you'd need to rename gosu.so for that to work, yes.

Thanks
Reply
- By jlnr (dev) Date 2010-01-12 11:02
Okay, released it as 0.7.18. Windows and Mac users can optionally upgrade to 0.7.18, which has absolutely no effect. But I cannot just upload a new version for *one* platform :)
Reply
Up Topic Gosu / Gosu News / Gosu 0.7.16, 0.7.17, 0.7.18 released

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill