KorGE v2.0.1 Release Notes

Release Date: 2020-11-23 // over 3 years ago
  • 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()

    Optimizations:

    • 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