Hide Icons

Hello.

I am just starting to use Corona, and I have a rather silly question. I decided to use the Sublime text editor, and it nicely shows all the files in the project including all the icons. Is there a way of hiding the icons, or can they be put in a folder (and have things still build correctly).

Related: Can I put, for example, scenes (lua files) in a folder? More generally, is there a way of organizing all the pieces?

-Bob Gordon (who has a lot to learn)

Hello, actually you can just delete all of them except 

Icon.png Icon-Small-\*.png Icon\*@2x.png

Those are the necessary ones and those are the ones i use when i build…

And i think they have to be in the base folder also…

Good Luck!

Icon’s have to be in the folder with main.lua.

For other things you can put them in sub-folders.   Images, audio and such you would reference them as:

“images/background.png” or “audio/beep.wav” assuming your images were in a folder called “images” and your audio in a folder called “audio”.

But for Lua files, you use a different method. Lets assume you put your .lua files in a folder called “code” except for main.lua and config.lua which have to be in the main project folder.  You would then do things like:

local myModule = require( “code.myModule” )

or

composer.gotoScene( “code.level1” ) – assuming the scene was level1.lua in a folder called “code”.

Rob

I find it annoying (during development and debugging) to have all those files in the base directory, so I usually put them in a subfolder till I’m ready to release.  

Then, I move them back.

It didn’t used to be a problem, but now, between the 20+ (ios + android) icons and the default images for iOS launch screens you have a lot of files in the base that just sit there getting in the way (of quick visual searches for the file you need to edit at any one time).

They aren’t necessary for development builds, so if they get in the way, you can safely adopt a similar strategy.  Just remember to put them back for the release build.

Hello, actually you can just delete all of them except 

Icon.png Icon-Small-\*.png Icon\*@2x.png

Those are the necessary ones and those are the ones i use when i build…

And i think they have to be in the base folder also…

Good Luck!

Icon’s have to be in the folder with main.lua.

For other things you can put them in sub-folders.   Images, audio and such you would reference them as:

“images/background.png” or “audio/beep.wav” assuming your images were in a folder called “images” and your audio in a folder called “audio”.

But for Lua files, you use a different method. Lets assume you put your .lua files in a folder called “code” except for main.lua and config.lua which have to be in the main project folder.  You would then do things like:

local myModule = require( “code.myModule” )

or

composer.gotoScene( “code.level1” ) – assuming the scene was level1.lua in a folder called “code”.

Rob

I find it annoying (during development and debugging) to have all those files in the base directory, so I usually put them in a subfolder till I’m ready to release.  

Then, I move them back.

It didn’t used to be a problem, but now, between the 20+ (ios + android) icons and the default images for iOS launch screens you have a lot of files in the base that just sit there getting in the way (of quick visual searches for the file you need to edit at any one time).

They aren’t necessary for development builds, so if they get in the way, you can safely adopt a similar strategy.  Just remember to put them back for the release build.