I was asking myself if it will be better for my card game to make 1 sprite for every card or 1 card object with different frames for each card.
Since it will have many cards, I want the better ordered version to keep it clear.
So, what are your thoughts and experiences on this topic? What is better?
For everyone asking, it is going to be something like an action-wizard card game.
if you dont have a local variable such as score/value/etc on each card, then go for multiple cards as frames in 1 sprite. you save events later, but the moment you add variables for each card and gets values from it then stuff complicates and is easier to manage having independent sprites.
P.S if your card value is the same as the frame position number then no biggie you can use the frame number as a value for counting cards and setting value of it.
One Sprite + Array
Develop games in your browser. Powerful, performant & highly capable.
Okay thank you for your answers! I will go for 1 Sprite ^^