Skip to content

Version 1.0.30

Compare
Choose a tag to compare
@NotTimTam NotTimTam released this 04 Oct 05:27
· 56 commits to main since this release

This update revamps the Menu GameObject to improve the way users interact with menus. It also fixes several critical bugs caused by webworker implementation in the rendering process.

Core Changes

  • Replaced menu options array in config with an items array. Which should be passed instances of Menu.Item.
  • Added Button, Slider, and Toggle menu items.

Additional Changes

  • The Animate behavior can now automatically overwrite its parent GameObject's renderable property. Simply set the behavior's config.overwriteObjectRenderable value to true. You can run Animate.resetObjectRenderable() to undo this and restore normal function to the object's renderable property.
  • Removed requirement for the current scene to be passed to behaviors.
  • Added positionOnScreen property to the GameObject class, to quickly get its coordinates on the screen, adjusted for parallax and camera position.
  • Replaced Renderer drawFrame method with drawFrames method.
  • Added/updated several examples.
  • Improved web worker implementation in frame generation to fix issue caused by multi-layer web worker rendering.
  • Fixed various other bugs.
  • Updated documentation to reflect these changes.

Migration

  • Replace Menu constructor config.options and config.callback properties with a single config.items property. To replace the original functionality, you can pass constructed Menu.Buttons to this items array. Each Button can be configured with a label, and a callback that triggers what occurs when the option is selected.

Full Changelog: v1.0.29...v1.0.30