I have made a basic set of functions to handle playing cards.
The functions are presented as a lib which can be included in a game program.
Three different sizes of spritesheets are avaialble for display of the cards, including jokers and an image of the back.
The files are available in the folder "Cards" at https://www.dropbox.com/sh/g3d1deaewfeb ... jx3Ga?dl=0.
The content and usage is described in the file "- ReadMe.txt"
The test- and demo-program is "Cards basics.txt"
Basic functions for card games
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Basic functions for card games
Last edited by Dutchman on Sun Sep 10, 2017 5:55 pm, edited 1 time in total.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Basic functions for card games
Very nice cards images!
I tried my new automatic code capitalization feature on your code, but... it is already all capitalized!
I tried my new automatic code capitalization feature on your code, but... it is already all capitalized!
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Basic functions for card games
I'm used to do that so that I can easy recognize my own functions and variables.