Re: minisphere 3.0.8
Reply #1182 –
I made some enhancements to the Galileo API to make it easier to do transformations and such. Instead of X/Y/angle properties, I added a group.transform property which is used to work with the transformation matrix directly. This allows you to do more complex transformations:
group.transform.identity();
group.transform.scale(2, 2); // 2x scale
group.transform.translate(10, 0); // x += 10
group.transform.rotate(Math.PI * 2 / 4); // revolve 90 degrees
group.draw();
Other enhancements I made in the last commit: Drawing Shapes directly (without a group), and the ability to do Galileo rendering, both Shapes and Groups, onto a Surface instead of the backbuffer. So those enhancements will be in minisphere 3.1, whenever I decide to release that.
Finally, I have an experimental branch on GitHub (pegasus-api) that overhauls the entire API to be more Pegasus-like and removes a lot of legacy baggage from the core engine such as the classic map engine, ByteArrays, etc. I'm still unsure if I want to release the Pegasus modifications with minisphere 4.0, or fork it off as a seperate "Sphere 2.0" repo. Either way, I might release an alpha version of that soon, so keep an eye out for it. In the meantime minisphere will remain backwards compatible for the foreseeable future.