Hi there,
I am also a recent “convert” to Corona/Lua, previously from GameSalad and Torque2D. There seem to be alot of ex-GameSalad users here, for various reasons I won’t get into right now.
If you have previous programming skills, especially Javascript, you’ll probably find Lua easy to learn. I think a core difference compared to Obj-C, C++, etc. is that Lua is not really an “object-oriented” language. However, there are ways to make it behave like that. Currently that method (metatables and such) is confusing to me, but I just started on Lua about a week ago and hopefully it will make sense soon.
This page has several examples of this, and the site in general is a vast resource for Lua.
http://lua-users.org/wiki/SampleCode
The current documentation on Ansca’s site is lacking; they have admitted so and are working to improve it. In the meantime, I suggest you just open up various main.lua
files from the Sample Code
directory in the app, follow along, and tinker around. Lua is a bit strange to me compared to TorqueScript, mostly in the way functions/variables must be ordered in a very specific manner, lest the app breaks because something isn’t in the proper “scope” of whatever is requesting it.
As for the lack of a graphical/GUI game editor, I thought this would be a major inconvenience. Both GameSalad and Torque2D have them, so I became accustomed to it. In truth it hasn’t been a problem; you can rapidly prototype your game in the “mock” phone/pad display without compiling a giant package of code every time, so you see instant changes with a simple “Command-R” refresh.
Best of luck, I think you’ll like Corona, especially after GameSalad. I certainly do, so far!
Brent
[import]uid: 9747 topic_id: 2616 reply_id: 7622[/import]