Game Development Reference
In-Depth Information
First, create a new directory, Proj_01 , and with the text editor of your choice, type the following code
and save it as main.lua in the Proj_01 directory.
-- Hello world for Corona SDK
print("Hello World")
Now start Corona SDK and click Simulator. Then navigate to the directory you just created and click
Open. This will start the simulator with a blank screen, but if you look at the terminal window, you'll
see the text Hello World displayed.
Graphic Version
The Corona Engine is made up of the basic Lua libraries and other libraries that are responsible for
display, audio, video, etc. Table 8-1 provides a list of the libraries that are available with Corona SDK
that make up the Corona Engine.
Table 8-1. The Namespaces Available in Corona SDK
Library
Description
ads
All ad-displaying libraries
analytics
All functions relating to using analytics
audio
All audio-related functions
credits
All functions related to virtual currency
crypto
All crypto-related functions
display
All functions related to display elements
easing
All easing-related options used in transitions
facebook
All Facebook-related functions
gameNetwork
All functions relating to Apple Game Center and OpenFeint/Gree
graphics
All graphics-related functions that help with the display elements
json
All functions related to reading and writing JSON data
lfs
The Lua file system library for dealing with files and folders
media
The media functions to display video and audio
native
The functions to deal with native functionality of the devices
network
The functions related to the network and data communications
physics
The Box2D-related physics libraries
socket
The LuaSocket library to allow for all TCP and UDP socket communication
sprite
The functions to work with sprite libraries
sqlite3
The functions that allow for SQLite3 database access
store
All functions related to in-app purchases
storyboard
All functions related to storyboards
timer
All functions related to timers
transition
All functions for performing transitions
widget
All functions for creating widgets
 
Search WWH ::




Custom Search