Sample Code (from SDK v1.0)
Feb. 5, 2010: This page is being revised to reflect the new and improved sample code shipped in Corona SDK 1.1
(What's new in 1.1)
Using this sample code assumes you have read and agreed to the License Agreement.
Animation
- Animation1 - a simple demo of a bouncing ball
- Animation2 - another bouncing ball demo - with table listeners
- Animation3 - another bouncing ball demo - with more table listeners
- AnimationTime1 - bouncing ball animation using time
- Fishies - a version of the fishies aquarium in the app store
- Movieclip - create animated sprites with the Sprite library
- Reference Point2 - how to create and animate objects using reference points
- Transition - how to transition between two objects
Camera
File Management
Network
Objects
Other
- Timer - a simple timer app
Sensor
- Orientation - how to use the accelerometers to detect orientation
Sound
- Event Sound - simulates a metronome that beeps every second
Text
- Hello World - how to display text on screen
- Hello World2 - how to display text on screen with random colors and a button
- Hello World3 - how to display text on screen with random colors and a button and a transition
User Interface
- Alert - using native iPhone alert dialogs
- Button - how to create buttons using the UI library
- FollowMe - how to create draggable objects