Card Gaem Trailer
Experience a unique story with many characters and encounters.
Ratings & Reviews
My Mom
Oh, that's nice sweety, I like the colors.
5/5 Rating
My Dad
That bing bong voice is annoying, I don't understand this game.
3/5 Rating
My wife
If I give you 5 stars will you get off the computer?
5/5 Rating
About Card Gaem
CODE EXAMPLE
The following script is the logic behind real-time card dealing. It took me many attempts to create a system that works regardless of how many cards the players have.
This was my first major game, and I needed a solution to what happens when a player is running with 3 or fewer cards, as the index system would throw out-of-range errors.
On line 122, I check for a raycast hit, if it's a hit and the name is not stored, it saves it and sets the boolean to true. On line 163, after a false hit is confirmed and we know there are less than 3 cards, it simply instantiates the exact same card that was stored earlier, thus avoiding an out-of-range exception error.
The else statement on line 175 is triggered when a player is not running a smaller deck, it uses an index system as it makes the most sense.
WHAT I LEARNED
Everything. The only game I had created before this was a simple "keep the ball up". Save systems, inventory systems, scriptable objects, UI, UX, game design, Playstore compliance, flow, animations, Aseprite (200+ hours), sourcing commercial use assets, permanent upgrade system, tutorials, dialogue system, coroutines, complex real-time cross-script communication.
Most important of all, I learned how much I absolutely love making games, I never thought I'd enjoy it more than playing them, let alone be borderline addicted to the process. Pro tip: watch out for the trash wizard below.