klondike: SDL-based card game

Play with your Puppy.
Post Reply
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

klondike: SDL-based card game

#1 Post by muggins »

http://drac-cardlib.sourceforge.net/
Drac is a completely free, open-source, portable card game library that uses SDL (Simple DirectMedia Layer). It provides almost everything you need to create your very own card games. Drac is a set of C++ classes and functions that help simplify the development of card games. Any simple game specially solitaire games can be created using Drac with minimal effort. It can also be extended to accommodate more elaborate games.
This klondike game came with the drac source. I modified it to use a default .png card-file image, rather than the default .bmp. The original .bmp file was 1183k vs 29k for the .png.

Of course, being SDL based, it needs SDL libraries to run. Just extract the attached archive to / , then start by entering klondike in a console, or click on /usr/bin/klondike.

The game has simple controls. Left mouse click to turn cards, right mouse click to add cards to the bases, and escape key to quit.
Attachments
klondike.png
(4.68 KiB) Downloaded 889 times
klondike.tar.gz
(46.55 KiB) Downloaded 576 times

Post Reply