Corona SDK Mobile Game Development:Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Using the simulator on Mac and Windows

On Mac OS X, launch Corona SDK by either selecting Corona Terminal or Corona Simulator from the Applications Directory. Both selections will access the SDK. The Corona Simulator will only open the simulator. The Corona Terminal will open both the simulator and terminal window. The terminal is helpful for debugging your programs and displays simulator errors/warnings and print() messages.

On Microsoft Windows, select the Corona SDK folder and click on Corona Simulator from the list of Programs in your Start menu or double-click the Corona icon on the desktop. (The simulator and terminal are always opened together if you are using Windows).

Let's go over the useful contents contained in the Corona SDK folder (located in Applications/Corona SDK on Mac and Start/All Programs/Corona SDK on Windows:

  • Debugger (Mac)/Corona Debugger (Windows)—Tool for finding and isolating issues in your code.
  • Corona SimulatorThe environment used to launch your application for testing. It simulates the mobile device you're developing on your local computer. (On Windows, it will open both the simulator and terminal).
  • Corona TerminalLaunches the CoronaSimulator and opens a Terminal window to display error/warning messages and print() statements. It is very helpful for debugging your code (only on Mac).
  • SimulatorHas the same properties as CoronaTerminal, but called from the command line (only on Mac).
  • SampleCodeA set of sample applications to get you started with Corona. Contains code and art assets to work with.

The Corona SDK window opens by default when you launch the simulator. You can open a Corona project in the simulator, create a device build for testing or distribution, and view soe example games and apps to get you familiar with the SDK.