SGE Game Engine - News
SGE 1.4.1.1 Released
Item posted by Layla Marchant <onpon4> on Sat 05 Nov 2016 08:46:04 PM UTC.
No, that's not a typo. You read that right: I skipped forward from 1.3 to 1.4.1.1. How did that happen?!?! In short, my own carelessness. I made a new release, 1.4, but then found a critical bug. So I fixed it and released version 1.4.1... or so I thought, so I released version 1.4.1.1 to really fix it.
With all that said and done, version 1.4 of the SGE contains the following changes compared to version 1.3:
- Uses of IOError have been replaced with OSError, since I looked at the definition of IOError again and realized that it wasn't the appropriate error to use even in Python 2; in both Python 2 and Python 3, OSError is normally what is raised when a file isn't found. This is technically compatibility breaking, but since using IOError is such a bad design, I decided to make an exception for this case. To maintain compatibility with both SGE 1.0 and SGE 1.4, use "except (IOError, OSError)" where you need to catch one of these errors raised by the SGE.
- "event_joystick" for dsp.Object, dsp.Game, and dsp.Room were not properly listed in the documentation. This has been fixed.
- Added the "swap_color" method to sge.gfx.Sprite, which can be used for palette-swapping.
And this version 1.4.1.1 of the Pygame SGE contains the following changes to version 1.3:
- Removed the default "Paused" image that included the SGE logo in it. It now just uses generated text that says "Paused". After all, the image looked ugly, so any game worth its salt would use a custom image anyway.
- When attempting to play a music file fails, rather than raising pygame.error, the error that would be raised is shown as a warning instead.
- Fixed two gfx.Color objects indicating the same color not being recognized as equal. "sge.gfx.Color('white') == sge.gfx.Color('white')" will now return True as a result.
Powered by Savane 3.14-8aba.
Corresponding source code