Defold 1.2.100
This release includes some Spine fixes, better multi touch support and some new native extension functionality.
We’ve also done some cleanup in our shaders, with regards to unused constants.
Multi touch
We have reworked the internal handling of touch inputs on devices, and fixed a number of issues along the way. We’ve introduced a new field id
in the action.touch
table, which allows you to more easily track touches.
Model matrices and built in material changes
Due to CPU batching of rendering primitives, the world space transformation is done on the CPU side. We have removed unused instances of ‘world’ matrices in the built in shaders and materials to avoid confusion and also state in the shaders that positions are in world space. In the process, we also removed som other unused shader varying variables that were transported from vertex to fragment shader.
Spine
We’ve fixed a few issues with our Spine support, regarding keyable draw order and discrete sampling of frames.
buffer
Lua API
We’ve added a new Lua module named buffer
. This new module allows the user to create and manipulate buffers directly from Lua. Buffers are used to communicate larger data between Lua and native extensions. E.g. camera or video frame buffers. See the documentation for some example on how to set a texture dynamically on a sprite.
Native Extensions
Due to some needed refactoring because of the new buffer
module, we had to revise some of the functions exposed in the sdk. We feel it’s much more clean and robust now, and it was necessary for us in order to move forward. Although this feature is still in an alpha stage, we aim to keep our sdk stable. In case you are one of the early adopters, please visit the dmBuffer documentation for the relevant changes.
Documentation
Big thanks to all of you for reporting documentation issues directly on the documentation pages! It works really well. It’s easy to keep track of and fix quickly. If you wish to help, look at the bottom right of the documentation pages, and click the button labelled “Spotted an error?” and submit your issue/suggestion.
Engine
-
DEF-2483
- Added: Added buffer Lua module for creating buffers and manipulating streams -
DEF-1217
- Fixed: Spine keyable draworder -
DEF-1688
- Fixed: Fixed issue of not flushing all purchases on Google Play after reconnecting to wifi -
DEF-2024
- Fixed: Multi touch gave inconsistent input messages -
DEF-2500
- Fixed: Extensions are now only initialized once -
DEF-2519
- Fixed: CONSTANT_TYPE_WORLD is set to the identity matrix for model components -
DEF-2538
- Fixed: When issue of last sound having gain 0, muted all audio -
DEF-2547
- Fixed: Removed unused shader constants from builtin shaders -
DEF-2554
- Fixed: Detect configuration change and reenable immersive mode -
DEF-2558
- Fixed: Fix discrete sampling midpoint calculation in Spine animations -
DEF-2561
- Fixed: Handling reset keys for spine draw order offsets -
DEF-2565
- Fixed: Debug rendering for circles in 2D physics -
DEF-2568
- Fixed: Typo fix for dmGraphics::GetNativeiOSUIWindow
Documentation
- Added examples for gui scripts
- Lots of minor fixes