FXGL v11.9 Release Notes

Release Date: 2020-05-27 // 5 days ago
  • 🔄 Changelog:

    • 👍 Error reporter is no longer a native window. It now runs as an MDI window to improve cross-platform support
    • Animation now has an onCycleFinished() callback
    • Single unified AnimationBuilder for Entity and Node, available for all fxgl modules
    • .properties or any extension with same properties format can be loaded as a PropertyMap
    • Redesigned menu architecture: now there are only two menus: main and game, each controlled separately via settings.setMainMenuEnabled() and settings.setGameMenuEnabled().
    • 🛠 Fixed a bug that incorrectly sorted the rendering order of subscene views
    • 🛠 Fixed a bug that incorrectly resized scenes
    • More detailed OS info is logged to debug (thanks to @ross-holloway94)
    • 🆕 New input trigger: sequence of keys
    • 🆕 New components: AutoRotationComponent, StateComponent
    • 🆕 New Entity and Animation builder convenience methods
    • 👌 Improved internal management of entity views, resulting in significantly improved use of CPU time (especially when there are many entities)
    • Simplified Save/Load API
    • 👌 Improvements to Shop API in the fxgl-trade module
    • 👌 Improvements to Entity API for kotlin users (thanks to @wakingrufus)

    Mobile improvements:

    • no extra IO tasks during FXGL init (faster startup)
    • no runtime proxy functions (avoids mobile runtime crash)
    • 📜 .tmx is now correctly parsed
    • platform os is correctly detected
    • virtual joystick

Previous changes from v11.8

    • Most FXGL.* calls are implemented as EngineService for further modular architecture
    • getGameState() is now a property map of the game world, accessible via FXGL.getWorldProperties()
    • Fonts are loaded lazily. Now getUIFactoryService().newText() has unmodifiable fonts
    • Faster window startup
    • 🆕 New events DSL API
    • 🆕 New Action API for entities. An Action is short-term behavior.
    • JavaFX Properties can now be animated using the Animation DSL API
    • WobbleEffect
    • ⬆️ JavaFX upgraded to 13.0.2
    • 🆕 New function to calculate distance between bboxes of entities
    • ⚡️ Minor convenience updates to API

    🛠 Fixes:

    • 🛠 Fixed z-index sorting bug when z is updated at runtime
    • 🛠 Fixed incorrect offset of the pause menu when window is resized