You are previewing Corona SDK Application Design.

Corona SDK Application Design

Cover of Corona SDK Application Design by Daniel Williams Published by Packt Publishing
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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.