New Corona Quick Start Guide

Posted by

Corona users come in many types: some have been with us from the beginning, and have watched the product evolve; others have recently migrated from other platforms; and for some, Corona is their first programming environment.

By popular request from many new users, we have just posted an absolute beginner’s guide to Corona: the Corona Quick Start Guide.

This guide covers everything from installation, to writing your very first programs, to exploring the Corona Simulator itself, including how to test the same code for iPhone, iPad and Android.

We will continue to post tutorials and lessons for users of all levels, but if you’re new to Corona, give the Quick Start Guide a read and let us know what you think!

Ready to get started?

Create amazing games and apps for iOS & Android

14 Comments

BramOctober 16th, 2010 at 9:41 am

Awesome! Also, being a noob, I was wondering if there’s a demo to make something like this: http://www.gamesloth.com/games/pen

NancyOctober 16th, 2010 at 9:20 pm

I have a 10 scene, several hundred frame “application” that I made with flash, that I would like to make work on an ipad. So, I started learning objective C which I think, after being unable to get past the hello world first step, might take more than the rest of my life to learn.

Then I came across Corona Lua and was able to easily get through the three hello world’s and even change the background and change the button into two sounding piano keys. With the names of the keys instead of hello world. Wow, and then I wanted to add a new frame or scene and have been looking and googling for weeks for some hint on how to do it, with no luck. My trial will end in a week, after which I will purchase Corona if I have succeeded. My only experience with programming is Hypercard (which I was very good at) and Flash.

Can anyone tell me how to add a new page/frame/scene/whatever??? I think that should be really simple, but there must be some gap in my brain. It would be nice if things, such as the “new” Quick Start Guide were dated so one could tell if they’d all ready been there several times.

[...] posting our Quick Start Guide to Corona a couple days ago, we thought we’d demonstrate just how easy it is to get started [...]

GamingHorrorOctober 19th, 2010 at 11:12 am

Great! Even I learned something from that, I haven’t started Corona yet or even looked at existing projects, so I was wondering what the basic workflow actually is. Now I know. I’m astonished that it’s a simple folder + lua files + resources. Smooth!

I hope you can also use subfolders to keep things a little bit more organized.

GilbertOctober 19th, 2010 at 12:32 pm

Hi @Nancy,

One way to deal with multiple screens or “scenes” is to break up your code into multiple files. Then use

require("myFileX")

to pull in methods and properties needed for that scene, where the file containing your methods and properties is named myFileX.lua. This is an object oriented approach. Each time you pull in a new class file, take what’s currently on the screen, save your states, and clear it out of memory with a

cleanUp()

function.

We have a tab bar example on our site that does this. There’s a function called loadScreen() in the main.lua file that handles the screen switching (be sure to take a look at the source by following the bitbucket.org link):

http://developer.anscamobile.com/code/tab-bar

This game template created by Ziray Studio is also a great example of switching screens and using external class files:

http://developer.anscamobile.com/code/corona-game-template-ziray-studio-labs

Let me know if you have any more questions or need help!

[...] off the Quick Start Guide and video tutorials that we’ve recently created for you, we now bring you a newly revamped [...]

[...] the past, we’ve released some beginner’s guides to Corona SDK that have been very well received by our users, new and [...]

magonicolasJanuary 16th, 2011 at 4:57 pm

Amazing! thanks a loot!

Jane ScaranoJanuary 22nd, 2011 at 11:12 am

Is is relatively easy to port code from Actionscript 3/Flash CS5 over to Corona? How about Cocos2d?

JustinFebruary 4th, 2011 at 7:17 pm

Would you use the method that Gilbert has described if you would want to switch between (Visual Basic calls them “forms”) or would some other method be used? The reason I ask this is because I have a Start Menu, and the Start Menu’s Start Button would take you to the Level Select Screen. I figured the easiest way to do that would be have the coding in the button, in Main.lua (start screen) switch over to another file called levels.lua (if it has to be called another name then that’s fine.) the two different files in the build folder would be what visual basic calls “forms”

kageFebruary 13th, 2011 at 7:07 pm

Is there a tutorial for windows? I feel out of place since all the software seems like, all are for MAC…ZERO experience here, am stuck on what text editor to use for windows.

Moon MeekoFebruary 14th, 2011 at 7:22 am

Hi Kage,
I’m also a zero experience MAC person. I’m busting my ballz off trying to learn lua and have found notepad ++ to be a pretty good text editor to use. I’m sure there are better ones out there that have functions such as auto complete but for now this is the one I’m using!

kageFebruary 15th, 2011 at 7:50 pm

Hey Moon Meeko,

Thanks for that tip. ( notepad++) I will try that. Um, did u see in any blogs on tutorials for windows? Again, seems like they are all for Mac users. I want to get a mac but no funds yet, so I will just use what i got. I easily get lost in the loop, I was surprised I saw your reply and I didnt even remember how I got here nor remembered I posted something here, LOL!

thanks again for your help, I will try to get back here if I find it. LOL!

TamesisJanuary 20th, 2012 at 5:20 pm

Hey! I found a very good review from gamesloth. Y play online every time I can. Cheers!

http://www.killerstartups.com/Web20/gamesloth-com-online-games

Leave a comment

Your comment