Cover by Daniel Williams

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required