Creating a standard card game (iPhone SDK)
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-05-21T23:20:57Z
Indexed on
2010/05/21
23:30 UTC
Read the original article
Hit count: 296
I am trying to create a card game with a standard deck of cards. I need to be able to create a new card on screen every time someone draws a card from the deck and then be able to continuously move it throughout gameplay. I have image files for every card available in the game.
I have tried creating a card object which held a UIImageView for the card along with some other basic data but I had trouble referring back to that card to move it again after the first touch. Was this the right way to do this?
© Stack Overflow or respective owner