O'Reilly logo

Corona SDK Application Design by Daniel Williams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting with main.lua

Now that we've learned about the structure of our app as well as Storyboard, we can finally start looking at the code inside our app! If you've been following the book, both the simulator and your text editor should already be open; if not, open main.lua with the Corona Simulator and open it again with your favorite text editor. Inside your text editor, you will see 39 lines of code that make up the main.lua file.

Starting with main.lua

Before we start editing main.lua, let's take a look at the pre-existing code to understand what's going on:

  • Lines 1-5: main.lua starts out with five commented lines. Commented lines are marked with two dashes and are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required