Back to blog
Jul 30, 2024
4 min read

Learning Godot: Worst Poker Clone Ever - Part 1

It’s been a bit slow going on getting into this project, mostly due to just life getting in the way and the release of Fallout London taking up my weekend time. What time I have devoted to this project has been almost entirely been spent messing around with getting assets pulled together and starting to mock out what the layout of the game might actually look like. I’ve spent far too much time messing around with the little details that won’t have much impact but it’s also been fun.

First up, I went and found a textured background and colored it green. It’s far too in your face and realistic of a texture for a game for my liking, but it’ll work for now. A green felt texture, typically used for poker or other card games, covering the entire image.

After getting the table texture, I went and found a card back that looked pleasing to me. It originally came in red but I have grand visions in my head of these ultra sleek black and gold style cards being used for this so, for my mock and what’ll probably get used for a long time, I just tinted these to be more gold. The back of a playing card featuring an intricate gold and black design. The design includes a central circular pattern with radiating lines and a lattice border.

Finally, what poker game would be complete without a dealer button. I probably could have made one from scratch, but found one pretty quickly and touched it up a bit A white poker chip with the word “DEALER” written in black capital letters in the center.

Now with these in hand, I started up Godot and put down some grid lines and started laying things out. Here’s where I started getting real nitty and figuring out the exact pixels between each card for the main game play, setup the player and opponent hands, added the card stack, and even made a small pile of cards in the corner to represent the burn pile. A digital poker game interface titled “Worst Poker Clone Ever (DEBUG)” is displayed on a green felt background. The screen shows a row of seven face-down playing cards in the center, with additional face-down cards stacked above and below. A white poker chip labeled “DEALER” is positioned at the bottom left. The background outside the game interface features a cosmic scene with stars and colorful nebulae.

And really, that’s as far as I’ve gotten with it. I still have to make assets for the card faces and there are some layout items I’m considering like moving the stack of cards to be dealt lower towards the dealer and spreading out the cards for the flop/turn/river. I also want to put in some minor differences and flourishes when I get the code hooked up to actually generate these so that they aren’t so crisp and perfect in alignment. Something that will feel a bit more like it would if you were sitting down at an actual poker table. You can kind of see that concept represented in the burn pile where things don’t line up quite perfectly.

If you want to chat about this project, hit me up on Mastodon or if you want to follow along with me, I’ve created a public repository for the Worst Poker Clone Ever where I’ll be pushing all of my code and assets to.