Devlog #1 (or 2)


Here's a quick devlog to cover what I've done over the past few weeks.

The first feature I implemented after I finished the initial load of asset creation was the three tabs of the main screen. The name of each tab can be clicked to bring it to the front, or send it offscreen if it's already in the front. Only one tab can be on-screen at a time.


For a little extra flair, each tab overshoots center-screen slightly and then pulls back, just to make them seem more weighted and real.

Next was the ability to move cards and interact with the board.


(Ignore the moving borders, those are from an unfinished feature)

Each card can be picked up with left click and is held as long as that button is held down. They use an acceleration and velocity system to move towards the mouse, stopping when their center is a few pixels from the mouse. As with the animation for the tabs, I chose this over having the card attached to the mouse's exact position to make the cards feel more physical.

The board can still be retracted with cards on it.

Also pictured there is the dealing system, which deals cards from the deck, first to the slots with the fewest cards, then from left to right if two slots are tied for number of cards.

Of course, the solitaire-style stacking of cards also brought the issue of how cards which cannot return the hand while the card beneath them is in play behave.


In that case, that card is unable to return to the hand, and in any situation where it would will move back to the last board space it occupied.

That's it for features that I can put into gifs. All the more complex work is under-the-hood stuff: card effect counting, deck management, attaching UI to the singleton.

'Til the next one.

Leave a comment

Log in with itch.io to leave a comment.