I was hoping that someone could help shed a little light on something. When developing a game that would contain something like a deck of cards, is it best to use an individual image for each card, or would it be best to use a sprite sheet image and draw only a portion of the image. I think it would make more sense to use the sprite sheet, but I'm not sure how to draw only a portion of an image.
If using a sprite sheet, then inside the constructor for a Card class I would imagine this...
public Card(Bitmap bitmap)
{
_bitmap = bitmap;
}
but how to make it draw only one portion of the sheet...
I am very new to developing on android and would greatly appreciate some assistance.
Thanks
after reading a little more, another question would be does it only go with canvas.drawBitmap();
If using a sprite sheet, then inside the constructor for a Card class I would imagine this...
public Card(Bitmap bitmap)
{
_bitmap = bitmap;
}
but how to make it draw only one portion of the sheet...
I am very new to developing on android and would greatly appreciate some assistance.
Thanks
after reading a little more, another question would be does it only go with canvas.drawBitmap();