itch.io is community of indie game creators and players

Devlogs

Devlog #1 (or 2)

Cartomancer-for-hire
A browser game made in HTML5

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.

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.

Leave a comment