How do I make Sprites/Animations Properly For iPhone Game

Discussion in 'iOS Programming' started by redscreamer19, Aug 1, 2009.

  1. redscreamer19 macrumors newbie

    Jul 23, 2009
    I need some very tech-specific answers.

    1) I have started making art for my iPhone game. The canvas size is 320x480, and I need to know how to export the image (say, for instance, a 2D man with a sword), and not the whole canvas to Xcode. I want to be able to put the man and not the whole 320x480 box into, as I just said, Xcode. I do know, however, that they need to be png. But, concerning the exporting of images, is this even the way to do it? Anyways, thanks for reading.

    I am using:
    Photoshop CS4
  2. simplymuzik3 macrumors 6502a

    Jan 29, 2009
    There's no special way to export images. I used illustrator and I exported them to .png format with 72 ppi and transparent backgrounds. My advice is to use transparent backgrounds so that the images work well with your app.
  3. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Depending on how you're using the sprites in your code you'd probably save the images for use with a size that is smaller than the entire screen.

Share This Page