Skip to content

miniSphere 5.1.0

Choose a tag to compare

@fatcerberus fatcerberus released this 25 Dec 07:12

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() and JobToken#resume() APIs. Suspended jobs keep the event loop alive but won't be executed again until they are resumed.

  • Thread objects 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() and JobToken#resume() methods to allow games to pause and resume Dispatch jobs at any time.
  • Adds Thread#pause() and Thread#resume() methods.
  • Adds index.mjs to the list of filenames recognized by the module loader.
  • Adds a new predefined color, Color.StankyBean.
  • Optimizes Surface and Texture size properties: .width and .height are 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.Screen rename.