I wish to link to the 52 card images to an array, but without adding them individually. I was thinking something like creating an array and using a piece of code something like this.
Image[] card;
card = new int[52];
for (int c = 1; c<=52;c++)
{
card[c] =
}
I'm not sure how to proceed, but the cards in the file are labelled 1-52 so I figured that would be an easier way(and a better way to impress my teacher) to create the card values. I thnk I might also have to change the ranks system and use that as well. I'm using slick2d for the graphics.
How can I use that piece of code(or a different piece of code) to assign the images to a variable?
card = new Image[52];.