Recent

Author Topic: Klondike solitaire Part 2  (Read 653 times)

TBMan

  • Sr. Member
  • ****
  • Posts: 307
Klondike solitaire Part 2
« on: August 15, 2025, 06:42:23 pm »
https://www.youtube.com/watch?v=qaFGzI3K2Rc


So the game is pretty much finished. I want to add a hint feature. The game lost logic isn't in it yet. I'll add that soon. It does detect a won game and I put in a hot key so I could  show the "celebrate game won" animation in the video. I may add more celebrations like some of the other solitaire games do. There's a couple of other things I want to tweak, but basically this is it. In the video I'm demonstrating 3 different decks which I made just for the fun of it.

I had a lot of fun coding this game. Most of the card deck sprites on the internet have to be purchased, but I managed to find some free ones. I used jpg files that had all the cards displayed in one large file. Sometimes the images had card backs also. I loaded the jpg file using code I found that displays a jpg using PTCGraph and I grabbed the palette, saved it, and then read the individual cards, saved them individually using my own sprite format and also exported the sprites as arrays in text files to be included in units. For the last deck I made, I generated include files for the suit units that just included the individual sprite arrays.  I also customized my sprite editor as different versions for each deck so I could edit the sprites as needed and export the changes. For the last deck I can just edit, export and then just rebuild the solitaire program to reflect the changes. No more cutting and pasting of text files, lol.

My next project is going to be Spider Solitaire. I'll start that this coming week.
I love programming.

Some things I've done using PTCgraph:

NFL Retro Football (almost finished):
https://www.youtube.com/watch?v=78mTtsd7ppk


Solitaire games:
https://www.youtube.com/watch?v=zmtxI7FdWuQ&list=PLa4BPpFl34iVhFwX1JZwVm3vE5ay_i3R2

 

TinyPortal © 2005-2018