Getting Comfy Womfy

Getting Comfy…
This post shares my use of ComfyUI for a game I’m making (I have a few that I spread my attention across). This game uses a classic playing card game as its mechanic. I needed to make 52 cards (and a lot more in the future for collectability). I saw this as a great opportunity to get more into making useful ComfyUI workflows for making a game.

Note that these examples use either Stable Diffusion and/or FLUX models (I experimented with both and since this was a learning project, I needed to learn from existing workflows which used these models). For the production version, I’ll either train my own models with my own generated content & styles or use an ethically-trained model. See the AI Usage Disclosure for restrictions on the example content in this post.

Let’s Not Play A Game Of 52 Card Pick Up…
The last piece to the puzzle was to find a way to loop through the workflow. I thought having 52 output nodes in a workflow might be a little excessive. (Again found a better way to do this for future projects) I wanted to rely on using existing custom nodes that were available. Using the custom nodes and some math, I eventually got the looping and reading from the CSVs working as I wanted. I was able to start the workflow and walk away for a little bit. It produced a nice visual range in most cases. A hierarchical range of 13 is pretty hard to distinguish between adjacent levels. If you have made a game where you had building upgrades (a la Clash of Clans), you know what I mean – it’s a challenge to get a distinguishable range for even 5 levels.

Example Generated Content

AI