How gamedev proceeds (hand design)


Today, I'd like to show you how gamedev typically proceeds in my case. First, I wanted to add this card to the game, the librarian:


At the beginning of your turn, this guy makes you draw an additional card. OK cool, so what? Well this means I could not assume that the player's hand contains at most 5 cards, i.e. the following design was becoming incomplete:


With more than 5 cards, the sixth card would overlap to the right of the game's area. So I added support for stacking cards as follows:

But damn, how ugly this is! To make up, I added borders to the cards, so that it looks better:

So starting with adding a card, I ended up doing rectangle size computations for proper stacking.. and drawing pixels for extra borders. But the result is nice I believe, and the game is now more flexible: no more upper bound on the number of cards in the hand 🎉

Leave a comment

Log in with itch.io to leave a comment.