This is a simple template for creating decks of cards in your games. It has been created so you can quickly create multiple decks of cards and expand the functionality of those decks without having to create multiple copies of the code. The template uses tables and just 3 actors to provide many decks to your game. Each deck and each card can have many attributes and you can extend the decks by setting variables or using tables to communicate with either the deck or the cards.
Includes functionality to deal the cards in order from top or bottom or in a shuffled (Random) way. Keeps cards unique within the game, keeps track of remaining cards in the deck. Handles basic card movement and ability to flip the card over. Deal cards face up or face down.
11/19/2016 Update: I have decided to share this for free in hopes it helps others create something they want. This is a small way to say thanks to all those that posted or shared info on how they did things that helped me.


Benjamin (verified owner) –
Great template that has helped me create my game Card Drinking Games. Wouldn’t have been able to do it without this template or the help from the creator who has answered every question I have asked.