Developing a Card Game

Discussion in 'iOS Programming' started by aztec31, Sep 19, 2008.

  1. aztec31 macrumors newbie

    Joined:
    Sep 15, 2008
    #1
    I want to develop a card game and would like some help/advice on how to get started on it and how to go about drawing the table, matt, and cards.

    1) Is each card (king of diamonds, 10 of hearts, etc) a png file?
    2) How do you go about drawing the table and matt where the cards will be placed on?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    1) Can be, or you can composite the cards in your app: store a single blank card, the numbers (in 2 colours), the symbols etc and composite the graphics as you need them. This might well use a little less RAM

    2) A big png? A smaller png and texture it across the screen?
     
  3. aztec31 thread starter macrumors newbie

    Joined:
    Sep 15, 2008
    #3
    Thanks for the reply Robbie. can you elaborate a little more an each point. What do you mean by texturing it. What software programs can I use to develop the graphics?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I mean tiling a smaller graphic so as it covers the entire screen. There may be a funky way to do this in OpenGL: I've no idea about that. Otherwise draw it in the bottom left, then to the right of that so there is no gap the the right of that and so on until the bottom of the screen is covered left to right, then move to the next row up and so on.

    As to compositing the graphics, if you don't know how to do that I suggest you go and read up on you chosen graphics technology, either Quartz or OpenGL as this is so basic that you should really be researching it yourself.

    Edit to add: use whatever graphics software you like. Photoshop, Seashore, Acorn, The Gimp, MS Paint via Bootcamp?
     

Share This Page