Daily Build Feature: Lua Files in Folders

Posted by & filed under Daily Build, Tutorials, Tips and Demos.

In case you missed it, as of Daily Build 619, subscribers can now place Lua scripts (with an exception of main.lua) in sub-folders within their project directory for iOS apps (doesn’t apply to Android apps just yet). There’s a few important things to note, however. When using the require() function in Lua, slashes (“/”) are not supported when accessing files in sub-directories (as with usual file operations). Instead, you use a “.” to signify a directory level. This also means you cannot have a “.” in your module name.


Daily Builds Update (626-631)

Posted by & filed under Daily Build, Tutorials, Tips and Demos.

Last week, I covered Local Notifications, which is an awesome new feature that recently came through the Corona Daily Builds (available to subscribers only). Today, I’m going to show you how to handle notifications when your app is not currently in the foreground (a question that came up in the comments section of last week’s post), as well as give you a quick update on all the other things that recently got pushed in.


Corona SDK Now Compatible with OS X Lion

Posted by & filed under Daily Build.

Although Daily Builds have been halted until the next public release (August 2nd), you still have access to the builds that were released prior to the code freeze. You may have noticed that Mac OS X Lion (10.7) was just released a few days ago, and for those holding off on upgrading because you’re unsure if Corona will work, then I have some good news for you. As of Daily Build 577, you can now use the Corona SDK to build your apps worry-free in OS X Lion (I’ve tested it myself—everything works as good as it did in Snow Leopard). Of course, only subscribers have access to the latest and greatest being pushed through the Daily Builds.


Add Bitmap Masks to Text Objects

Posted by & filed under Daily Build.

In case you missed it way back in Daily Build 502, you can now add bitmap masks to text objects! Previously, when you tried to add a bitmap mask to text objects, you’d get unexpected behavior—most often in the form of your text always showing up as black. Now, you can add masks to text objects directly, or to a group where a text object resides and everything should work as expected! Remember, only subscribers can take advantage of the latest and greatest being pushed through the Corona SDK Daily Builds.


Various Facebook API fixes for Android

Posted by & filed under Android, Daily Build.

In case all you Android developers missed it, as of Daily Build #565, various Facebook API issues have been addressed (casenums: 6196 and 6391). We know many of you have been on your toes waiting for this one, so this should be great news to a lot of folks — Enjoy! Remember, only subscribers can take advantage of the latest and greatest being pushed through the Corona SDK Daily Builds… Of course, Daily Builds are available only to subscribers.


New Windows Simulator Features

Posted by & filed under Daily Build.

As of Daily Build 521, the Windows Simulator has been fitted with an iPhone, iPhone4, and iPad skins (as well as a statusbar) to improve the overall desktop “simulation” of your mobile apps. Remember, only subscribers can take advantage of the latest and greatest being pushed through the Corona SDK Daily Builds… So what are you waiting for? Become a subscriber today.


Corona UI “Widgets” Available to Subscribers

Posted by & filed under Daily Build.

We gave you a preview the other day, and now—as of Daily Build 553—subscribers can now take advantage of the new “widget” library (beta), which is part of the next generation Corona UI implementation. Once you grab the latest build, the new “WidgetDemo” can be found in: /SampleCode/Interface/WidgetDemo And when you’re ready to dive in, go view the Widget Documentation to get started. Remember, only subscribers can take advantage of the latest and greatest being pushed through the Corona SDK Daily Builds… So what are you waiting for? Become a subscriber today.


The JSON library now comes pre-installed

Posted by & filed under Daily Build.

The JSON library that we’ve been shipping in our sample code (e.g. Facebook) is now an official part of the Corona core. The really great thing about this library is that it makes serializing/deserializing Lua tables a no-brainer. [cc lang="lua"] local json = require “json” — Lua script: local t = { ["name1"] = “value1″, ["name2"] = {1, false, true, 23.54, “a 21 string”}, name3 = json.null() } local json = json.encode (t) print (json) –> {“name1″:”value1″,”name3″:null,”name2″:[1,false,true,23.54,"a u0015 string"]} local t = json.decode(json) print(t.name2[4]) –> 23.54 [/cc] As long as you don’t have userdata or functions or cycles (tables with child values that reference a parent table), you’re good to go. For those of you who don’t speak SQL in your sleep or think the


system.getTimer() now in HD

Posted by & filed under Daily Build.

Or rather, now available in high resolution. system.getTimer() used to only give you time up to 1 milliseconds. But starting in daily build 547, can give you accuracy up to 0.001 milliseconds. This can come in handy if you’re trying to profile where time is getting spent in your Lua code. We’re pretty confident this will be consistent on the simulator and iOS. Let us know if you see something different on Android-based devices.