Sorry,
1… So, create a folder somewhere, say on your desktop and call it ‘project’ or some such. Save what your working on in bbedit to that location and just name it main.lua. Once its saved, the syntax highlighting (all the nifty colors) will start working. You can then run the simulator and point it to that folder. You don’t actually select the main.lua file with the simulator, just point it to that folder and hit open and it will run (assuming your code is good).
- Put all your assets in that folder, so pictures, sounds music, whatever. When you refer to it, say you have an image named ‘foo.png’, you just refer to it as such:
local image = display.newImage(“foo.png”, 0,0)
This will place your picture “foo.png” at the screen coordinates 0,0 (x,y).
- Mostly I’ve just been using lua lately. Haven’t really had a reason to play with perl. BBEdit is pretty good for html as well, though dreamweaver certainly has its advantages…
So, I highly reccomend that you use the terminal to launch the simulator as any errors in your code will get displayed there. This part may be a bit confusing, but once you’ve done it a few times it’ll make more sense. There’s a file in your Ansca folder that’s just called ‘simulator’ (don’t confuse this with the file ‘corona simulator’). You can literally just drag this to the terminal and hit return and it will launch. Then you point it to your directory as usual. [import]uid: 5 topic_id: 98 reply_id: 55[/import]