Gideros 2016.8.2 released!
We are proud to announce the release of the latest version of Gideros, Gideros 2016.8.2! (Note, in this blog post we accumulate changes in 2016.8.1 and 2016.8.2, the latter being mainly a bugfix release.)
Download Gideros 2016.8.2!
A labour-saving feature of the new release is an automatic plugin export mechanism. As many of you will know, adding plugins to exported Gideros apps (eg to incorporate ads, analytics, game controllers etc) currently involves delving in to the "All Plugins" folder of your Gideros installation and manually copying files into the exported project. This is tedious and accident prone and means reading through complex docs like these. The new mechanism means Gideros can do this for you, just click on the "Select Plugins" button in the Export dialog and select the plugins you want.
The automatic plugins also make Direct APK export more useful as it was previously restricted to "vanilla" Android apps without plugins. Now you just select all the plugins you want using "Select Plugins" and everything is baked into the APK Gideros auto-generates! No need for Eclipse or Android Studio!
Another great new feature is macros. Currently Lua has no constants, you just have to define variables like
Now you can define symbolic constants like this
and then simply use "pi" in the code as normal. When the Lua code is byte compiled, the constants are replaced with their literal values which saves CPU time. You can also do more advanced stuff like this.
Note the delimiters. And even,
-- macro definition
time_ @ |local _time_ = os.timer()|
_time @ |print("TIME:", os.timer() - _time_)|
-- macro usage
local x = 0
time_ for i = 1, 1e8 do x = x + i end _time
We've also added bitwise operators to Lua. (basically like C or Java). And our Lua now supports binary and octal number constants as Lua 5.3 does:
0b1101011010
0o7215678546
Here's the full list of additions and bugfixes (comparing 2016.6 with 2016.8.2):
Android Studio upgraded Gradle version
Gideros Studio non blocking export dialog with progress
Added lots of plugin installer scripts for Android (Android Studio, Eclipse, APK exports)
Allow providing default app and tv icons that are replaced on export for all supported platforms
Allow providing default horizontal and vertical splash images that are replaced on export for all supported platforms
Add additional win32 plugins on export to nearly match those available for Windows Desktop export (bitop, clipper, controller, json, lfs, lpeg, SQLite, luasocket, microphone, struct)
Upgrade to latest OpenAL sound library for better sound latency
Shaders code can be supplied in-line from Lua
Textures can be created from raw pixel data
Global frame counter in Core.frameStatistics
Core.frameStatistics now returns table method to get shader language
TextField parameter for alignment: sample
RenderTarget can be saved to file
Tab switching by ctrl+tab (or cmd+tab) in gideros studio IDE.
Android returns device type (tv, appliance, car or mobile) on getDeviceInfo
Negative indexes support (-1, -2, ...) for Sprite:getChildAt(index), SpriteBinder:removeChildAt(index) and Sprite:swapChildrenAt(index1, index2) to get sprites from top
Bitwise operators with new metamethods
Binary and octal number constants
print() is sent to logcat
Correct requesting Open GL on desktop (due to upgrade to Qt 5.6: caused Gideros Player to crash on startup for some users)
lua and luac binaries compilation with mingw
Particles are now visible after removed
Android player check file for null pointer when loading existing projects
Timer's behavior to run as set
Path2d texture positioning
[Controller] fixed Moga lib for Android 21
[Gaming Google Play] show all leaderboards support
[Gaming Google Play] step by step achievements handling on GMS
[Gaming Google Play] improved API for achievements
[Camera] initial alpha version for drawing camera texture in Gideros