Unity poker is a simple Unity game I made for a job interview. The game has two game modes: Black Jack and Jacks or Higher. The rules of Black Jack are standard.
Jacks or Higher is played like this:
Pretty simple game and standard aesthetics. The cards are constructed using a combination of three sprites. The number, the suit and the background:
Construction of the Ace of Spades
The other notable feature is the smooth card movement.The cards don’t move by setting their location. Instead their final location is set as a field and each frame a new intermediate location is set based on a linear interpolation of the current position and then new one. The lerp amount is a tweakable parameter.
The bulk of the work after this was the logic required to deal cards, check for poker hands, and assign winnings.
Here’s some gameplay: