Game Development Reference
In-Depth Information
For more details on the libraries and functions, the online API reference found on the Corona Labs
web site is quite useful (see http://docs.coronalabs.com/api/ ) . It lists the API and if there are any
additions, this online reference provides all of the latest updates to the API.
Hello World on the Screen
In this exercise, let's display “Hello World” on the device for the world to see (Figure 8-3 ). We shall
use an alert box to display “Hello World” on the device, instead of the terminal.
native.showAlert("Hello World", "via the showAlert", {"OK"})
Figure 8-3. “Hello World” displayed in an alert dialog on the iOS device
This is the easiest and the quickest way to display information to the user without the hassle of creating
display objects. The best part is that this adapts natively to the platform you are running the app on.
 
Search WWH ::




Custom Search