Under Pressure - Devlog #3: Card System
๐ข 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:
- Card #0 is already played on Board
- Card #1 #2 #3 #42 are in Diver's hand
- All others are in one of three Decks 4-14 / 15-28 / 29/41
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:
- Parent to new Deck
- Update new Deck's cards positions (including new Card)
- Update old Deck's cards positions too
This way I had great control on all behavior custom to each Decks.
Each UpdateCardsPositions is overridden for each deck.
- HandDeck need to display all player's cards facing in order, in a hand's way
- PickDeck are piling up, with their back facing
- BoardDeck display six cards per row with an offset between them
- HideDeck hide cards when there are used as Boost
Each card animations is made with LeanTween, keeping it's animation id and stopped if a new one occur.
Support our games!
๐ 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!
Files
Get Under Pressure
Under Pressure
Card game, strategy and bluff
Status | Released |
Author | Hibo_Studios |
Genre | Card Game, Strategy |
Tags | 2D, french-game, Indie, Short, Singleplayer, underwater, Unity |
Languages | English, French |
More posts
- ๐ข Under Pressure - Update 1.4!Oct 26, 2023
- Under Pressure - Devlog #5: Cards Design Part.2Oct 02, 2023
- Under Pressure - Update 1.3!Sep 19, 2023
- Under Pressure - Devlog #4: Cards Design Part.1Sep 01, 2023
- Under Pressure - Update 1.2!Aug 22, 2023
- Under Pressure - Devlog #2: States design!Jul 28, 2023
- Under Pressure - Devlog #1: Release!Jul 25, 2023
Leave a comment
Log in with itch.io to leave a comment.