Posted August 10, 2023 by Hibo_Studios
📢 Go play Under Pressure for free on Itch.io and Steam! 📢
I am working on visuals improvements for next update! Check it on my socials!
In this devlog I am gonna talk about how I develop my system for Card management. In this card game I needed to have a system to handle several parameters on each card, including position, rotation, visibility, smooth animation.
There are two main objects: Card and Deck. A Card is always parented to a Deck. The deck is a container of Cards that layout them in a custom order, position and rotation.
There is an initial state in the game, always the same. That guarantee all cards have an initial parent:
There is five different Deck type in the Game. All of them implement the AbstractDeck.
An AbsractDeck has simply three methods.
When a card is added to a Deck this is executed:
This way I had great control on all behavior custom to each Decks.
Each UpdateCardsPositions is overridden for each deck.
Each card animations is made with LeanTween, keeping it's animation id and stopped if a new one occur.
🙏 You can help us by giving with Itch.io's Support feature! It will really help us to continue making our games. Or buy our first game "The Bastonnes" on Steam
For now, we are working on Under Pressure's updates and we start working on the next projects. If you want to get the latest news, follow us on Twitter, Instagram or join our Discord server!