This book is designed to teach you the core concepts of the Lua programming language to get you started with building your own apps quickly and easily. After you've learned some of the core concepts, you will learn how to build your first app and your first game using the Corona SDK product. You will also discover how to get your app on the App Store or Google Play.
Chapter 1, Getting Started with Your Mobile Adventure, will get you acquainted with the Corona SDK product and will guide you through the setup of Corona SDK so that you can start creating apps in no time.
Chapter 2, Learning Lua, teaches you the core concepts of the Lua language. We will learn about the basics of variables, tables, decision statements, and functions. Everything in this chapter is designed to jump-start your app development adventure.
Chapter 3, Creating Your First App, will gently guide you along the path of creating your first app. You'll learn about what text editors to use, how to take advantage of the features in Corona SDK, and how to create a real-life example app (no "Hello World!" here).
Chapter 4, Creating a Puzzle App, continues your app development adventure by teaching you how to create your very first game. You'll learn how to use drag-and-drop, widgets, and events, all while creating a puzzle app that's playable by all ages.
Chapter 5, Testing and Publishing, discusses how to start testing your app. Once you've learned how to test your app, this chapter will explain how to publish your app on the App Store or Google Play.
Appendix, Tools, Services, and Marketing, provides information on how to get the most out of the Corona SDK product. Inside this appendix, you will discover third-party tools and services that will help speed up your development as well as marketing tips to help make your app successful.
You will need a couple of items before you can develop apps with Corona SDK:
Mac OS X 10.7 or later, Intel Mac
Windows XP or later, 1 GHz processor
Java 6 SDK
A text editor such as Notepad++ or Sublime Text 2
The latest public build of Corona SDK – Build 2012.971
If you would like to publish your apps, you will need a Google Play for Android or an iTunes developer account for iOS.
This book is for anyone who is interested in creating applications for Android or iOS. You do not need previous development or programming experience.
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "To install Corona, open the .dmg
file and follow the on-screen instructions."
A block of code is set as follows:
if(age < 29) then print('You are not quite 30!'); end
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Once installed, you will be presented with the Corona Developer Login screen."
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <[email protected]>
, and mention the book title via the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
We also provide you a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/7361OT_ColoredImages.pdf.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
You can contact us at <[email protected]>
if you are having a problem with any aspect of the book, and we will do our best to address it.