[Resolved] Using PSD files in your App

I’m extremely new to Corona but have a bit of programming experience.

I’m looking at some sample code to see how Apps are put together and have a question.

I’m looking at a particular piece of sample code and I notice that the images that the game uses seem to be bundled up in a PSD file, so that the individual images are not stored in the app’s folder hierarchy.

I use Mac exclusively, and do not have Photoshop. I do have pixelmator, and I opened up the PSD file and see that all the images that appear in the game are in this one PSD file as different layers.

FANCY! I can see how that would be extremely useful.

My question is, basically how do you set this up? How do you use corona to dig into the layers of a PSD file and pull out the right one? In this example I’m thinking it has a lot to do with the “content.lua” file, but I’m not able to see how the puzzle fits together yet.

Feel free to point me to standard documentation on how to work with PSD files – I haven’t found anything yet.
I’m specifically looking at this Match the Letter Game
https://github.com/johnpolacek/Match-The-Letter-Game

Cheers! [import]uid: 191855 topic_id: 32855 reply_id: 332855[/import]

Corona cannot work with PSD files. Just save the layers of your PSD into individual images then load those individually in your code. Use transparent PNG files, make sure that it’s optimized also so as not to have large file sizes.

In the future, an alternative would be to “pack” all your images/sprites together into one sprite sheet (an image that contains a grid of smaller images) by using a third party software (I use Zwoptex), then use the Sprite API to load and use them in your game. (This might be what you’re looking for) [import]uid: 144908 topic_id: 32855 reply_id: 130586[/import]

Corona cannot work with PSD files. Just save the layers of your PSD into individual images then load those individually in your code. Use transparent PNG files, make sure that it’s optimized also so as not to have large file sizes.

In the future, an alternative would be to “pack” all your images/sprites together into one sprite sheet (an image that contains a grid of smaller images) by using a third party software (I use Zwoptex), then use the Sprite API to load and use them in your game. (This might be what you’re looking for) [import]uid: 144908 topic_id: 32855 reply_id: 130586[/import]

Maybe the PSD file was left in the game by accident, anything in the game folder (or subfolders) will be packaged up and included in the game, even if the item is not referenced in the game.

I realised this when I couldn’t understand why my first game was massive (I kept all the PSD files in a subfolder) :frowning:

Dave [import]uid: 117617 topic_id: 32855 reply_id: 130602[/import]

Oh… what the heck.

Where are the images for this project.

OH. I see.

There is a pics subfolder with everything in there.

Hah. Nevermind! [import]uid: 191855 topic_id: 32855 reply_id: 130603[/import]

Maybe the PSD file was left in the game by accident, anything in the game folder (or subfolders) will be packaged up and included in the game, even if the item is not referenced in the game.

I realised this when I couldn’t understand why my first game was massive (I kept all the PSD files in a subfolder) :frowning:

Dave [import]uid: 117617 topic_id: 32855 reply_id: 130602[/import]

Oh… what the heck.

Where are the images for this project.

OH. I see.

There is a pics subfolder with everything in there.

Hah. Nevermind! [import]uid: 191855 topic_id: 32855 reply_id: 130603[/import]