KorGE v2.0.2 Release Notes

Release Date: 2020-12-03 // 11 months ago

Previous changes from v2.0.1

  • v1.15.1...v2.0.1

    ➕ Additions:

    • ➕ Added support for cube textures and skyboxes. Thanks @dhakehurst !
    • Adjustments to 3D API. Thanks @dhakehurst !
    • ➕ Added a new BaseView used for both: View and View3D. Thanks @dhakehurst !
    • 👌 Supports specifying gameId to Korge function and a custom settingsFolder to store game settings
    • ➕ Added Resources to the injector (providing local resources to the scenes)
    • F7 now displays a debug window on AWT allowing to view the tree and change properties
    • ➕ Added debug components (KorgeDebugNode interface)
    • Time on animate is now using TimeSpan instead of plain ints in microseconds
    • Animator functions have now variants for most common numeric types instead of using Number
    • Timed class uses now TimeSpan
    • 👍 BitmapFont.getBounds now replaced with Font.getBounds to support any kind of Font including vector ones
    • ➕ Added debug package with stuff for adding debug information to component and scenes
    • ✂ Removed Html.Alignment that is now replaced with korim TextAlignment
    • Html now uses a FontCatalog instance provided to resolve fonts, used only on TextOld for now
    • InputKeys now have shift, ctrl, alt and meta tags
    • ➕ Added KeysEvents.downFrame to execute a code on each frame when the specified key is down
    • ➕ Added MouseEvent.onScroll* functions
    • 👍 DebugLineRenderContext now support specifying color for each line
    • 👍 DebugLineRenderContext supports simplified arbitrary VectorPath rendering
    • 📦 Extracted MaskStates and stencils from the animate package to be usable in other parts
    • 🛠 Fixed stencil support request on several targets
    • ➕ Added RenderContext.renderToBitmap
    • ➕ Added resourceBitmap, resourceFont, resourceBitmapFont and resourceTtfFont extension function delegates for defining lazily loaded resources automatically garbage-collected when defined locally to the scenes
    • ➕ Added ServiceBaseId used for bundles when interacting with external services providing different ids for each platform (like achievements on android / ios)
    • 📜 Major TiledMap parsing work. Thanks @RezMike !
    • ➕ Added QView similar to JQuery to perform operations to zero, one or several views at once
    • ➕ Added suppor for strokes to Circle, Ellipse and RoundRect
    • ➕ Added ShapeView for custom shapes using Graphics and supporting strokes
    • 👌 Improved FpsOverlay
    • ➕ Added MaskedView using stencils to display only one part of another view using another view as mask
    • ➕ Added TransitionFilter for blended transitions using a mask
    • ➕ Added KTree for serializing/deserializing view trees into XML. The intellij plugin supports editing this format.
    • ➕ Added FastSpriteContainer and FastSprite for lightning fast sprite rendering using the same base texture/bitmap (requires atlases)
    • Partially implemented new korui on top of korge views
    • ➕ Added SPONSORS.md file with Patreon sponsors
    • 👉 Make View.draggable support a different selector + provide callback
    • 0️⃣ Now vector text (Text view with non-bitmap Font) scales along the window by default (adjustable via autoScaling boolean property)
    • ➕ Added View.windowBounds and View.getWindowBounds()


    • BatchBuilder2D optimizations
    • ParticleEmitter optimizations
    • ➕ Added BatchBuilder2D.addQuadVerticesFastNormal
    • ⚡️ Optimized Graphics view

    🛠 Fixes:

    • 🛠 Fixed mouse drag to work when the window is scaled
    • 🛠 Some fixes on NativeStorage. Now hopefully stored on the right folders

    ♻️ Refactors:

    • ♻️ Major refactors to dragonbones, spine and swf

    💥 Breaking changes:

    • ✂ Removed deprecated code
    • Text and Camera replaced by newer implementations. Old implementations keep with TextOld and CameraOld names for a smooth transition
    • 🚚 Moved admob, box2d to bundles. Added services and inapp billing: https://awesome.korge.org/ ( hosted at https://github.com/korlibs/korge-bundles )
    • Dragonbones and Spine now uses some geometry tools from korma instead of providing their own
    • Dragonbones Transform renamed to TransformDb
    • 🚚 Moved Atlas, Atlas2, AtlasPacker and AtlasInfo to korim
    • Component now has a BaseView instead of View
    • ⚡️ UpdateComponentV2 is now just UpdateComponent
    • Unified ViewsScope into ViewsContainer
    • ✂ Removed resource function and renamed Resource annotation to ResourcePath
    • 🔄 Changed all HRTimeSpan to just TimeSpan
    • Removed View.onKey*, now just use instead View.keys.onKey*
    • ✂ Removed old Achivements, Ads, InAppPayments classes that are now externally-defined bundles
    • 🚚 IntArray2 moved to kds
    • ✂ Removed Fonts. Shouldn't be required now
    • ✂ Removed old EffectView*
    • View.colorAdd changes from Int to ColorAdd
    • ✂ Removed VfsFile.readBitmapFontWithMipmaps, just use readBitmapFont