I’m trying to make a card game and below is a section of my game screen, the card graphic displayed above is a reference to how the cards are roughly supposed to look like, but the lines below the card are the instances spawned by a card factory, they seem to be the middle section from my card graphics.
My Lua module containing the cards:
The section of my controller script that controls card creation:
The card script attached to prototype game object for the card factory:
The code had their debug codes removed but if I readd them and only run one instance of the draw_hand() code the log and game screen looks like this:
My cards atlas is this:
If it helps, I’m doing this on Mac, and as far as I can tell I don’t think there’s a problem with rotation.