Sunday, January 30, 2011

What I don't know

Really, every post could have this title. It's 7AM on Sunday. The chihuahua is balled up in front of the heating duct, I'm trying to wake up with a can of Coca-Cola cherry zero (why does it taste better than Diet Cherry Coke?). I'm sitting at my iMac in the dining room.

And I'm starting over.

I just made a copy of my WIP (work in progress) folder. I'm going to delete everything out of the main.lua file. That's akin to the index.html file for the Great Big InterWeb. Every Corona SDK project has to have this file, even if all is does is point to all the other files that actual do the work.

I'm starting over because I've been cludging together sample code from a bunch of different resources and I got myself dazed and confused. So I'm starting from scratch and I'm going to rebuild everything I thought I had before. I'm going to try to understand all of the code I put into the main.lua file. That will be difficult as it's still confusing to me. I still don't understand the basics of the language and I haven't stumbled across that tutorial or forum post or whatever that really breaks it down for the true beginner.  So let's start. The file is blank.

I'm starting from scratch. I've opened the Lua 5.1 Reference Manual, written by the guy (or the folks?) who developed Lua. This is the first edition. There's a second edition for sale through (damn them) Amazon. [Of course, you want to try to buy local first. ALWAYS TRY TO BUY LOCAL if you want your local community to thrive. If you don't care about your neighbors and friends and family who live near you, then by all means, just purchase from Amazon and, without a second thought, send all of your money out of state.]

Ah, I've already learned that you don't have to separate statements with a semicolon. It's optional.

Okay, I'm going to stop here because this post is getting long. Continued in Part II of What I don't know.

No comments:

Post a Comment