miniSphere 5.1.0
miniSphere 5.1.0 is the first minor update in the miniSphere 5.x release series. This release adds a few new APIs, bumps the API level to 2 and fixes several bugs discovered since the last release. Merry Christmas! 🎄🎁
Important Considerations
-
Your game can now suspend and resume recurring Dispatch jobs using the new
JobToken#pause()andJobToken#resume()APIs. Suspended jobs keep the event loop alive but won't be executed again until they are resumed. -
Threadobjects now have.pause()and.resume()methods as well. Pausing a thread suspends its update and input jobs, but not its render job. This allows you to pause updates for an entity while still allowing it to be visible on-screen.
Changes in This Version
- Adds
JobToken#pause()andJobToken#resume()methods to allow games to pause and resume Dispatch jobs at any time. - Adds
Thread#pause()andThread#resume()methods. - Adds
index.mjsto the list of filenames recognized by the module loader. - Adds a new predefined color,
Color.StankyBean. - Optimizes Surface and Texture size properties:
.widthand.heightare now cached as own properties of the object after the first access. - Fixes a bug where
Sphere.restart()causes some things to be rendered in software afterwards, leading to massive slowdown. - Fixes a bug in
XML.readFile()which made the function completely unusable. - Fixes a bug where
SSj.log()logs "undefined" when passed an Error object with no stack trace. - Fixes the Sphere Studio template after fallout from the
Surface.Screenrename.