A basic card deck engine. How to use: Click and drag to move cards. They will automatically return to the hand when dropped unless touching an interaction panel. Draw pile: Click to draw up to the current hand size. Discard pile: Put cards here to discard them. Shuffle Hand button: Rearranges the cards in your hand. Redraw Hand button: Discards your hand and draws up. Reshuffle Discard button: Shuffles the discard pile and puts it at the bottom of the draw pile. Put In/Remove Jokers button: Toggles whether the jokers are in the deck. Pressing Remove Jokers with a joker in your hand won't automatically replace it with a new card. Interaction panels 1&2: Place cards on the panels to store them for later. Multiple cards can be stored on a panel and cards can be moved from one interaction panel to another (including the discard), but cannot be returned to the hand once placed on a panel. ♦New!♦ Hand Size button: Sets the size of the hand, formerly handled by a slider. Opens a text prompt to type in the number desired. ♦New!♦ Draw Mode button: Sets how the cards are drawn from the deck (top/bottom/random position). Opens a text prompt to type in the number desired. ♠♥♣♦Purpose♦♣♥♠ The functions included in this project are designed to be easy to use and helpful for a variety of card emulation needs, from standard playing card games and tricks to a deck-building game or digital board game recreation. Code is commented to aid in understanding how it might need to be modified for various intents. If you need clarification on something, ask me in the comments!
Feel free to use the Scratch card art if you give credit Planned features: ♠ Magic shuffles (perfect, Monge, milk, etc.) ♣ Cuts (taking cards from the top of the deck and moving them to the bottom without changing the order) ♥ More GUI improvements (display of setting values, etc.) ♦ Face up/face down tracking for card tricks? (Currently all cards not in the draw pile are always face up and the draw pile is always face down. Not guaranteed to add.) Changelog: 1.7, March 19: Added different draw modes, changed hand size to be a type-in instead of a slider, improved how interaction panels are handled to make adding more of them easier, fixed bug where jokers in interaction panels would not be removed