Genre: Survivors-like, card game
Engine: Unity
Platform: PC
Time: 2024- ongoing
Made by: Felix Groves and Zakk Norman
The card system designed by yours truly, was inspired by the game Balatro in its behaviour. The cards are split into two, the logic one which the mouse interacts with and that does the logic spawning stuff in and what it should do. Then theres the visual part, the visual side is all the flashy stuff.
The visuals aren't stuck on the logic side, and instead move in two modes. When in the "Hand" they are independant from the logic and a set on two curves. One for vertical positioning and one for curvature the further it is from the center.
But when held by the player, it tries to follow the invisible logic card the player is holding and rotates based on the direction of the mouse.
One focus I had was making adding new spells to the game hassle free. So that all one would need is an effect and sprite for the card.
I achieved this by making it so that spells are based around scriptable objects. These objects taking in a spell manager which basically handles all the spell logic for whatever it now does.
Plus it takes in the sprite and name. After that, all one needs is to put the scriptable object in the available spells folder and it will have been added to game.
The logic the card system handles getting the spells and putting them in the correct places and correctly configured.