1 min
Drawing cards in my networked board game.
When the player’s land on certain tile around the board they draw a card from a deck and it is added to their hand. The decks and their respective cards have been implemented by another group member.
Once a player moves a switch case is performed on the type of tile they landed on if it is a card tile. Then the client whose turn it is take a card from their deck. The information about what the card does is stored in a cardInfo struct which can be streamed into a packet and sent across the network to all clients. When the clients recieve the packet they render the card’s sprite and the client whose card it is presses a button to continue and the card stops rendering. The card is then rendered at the bottom of the owning client’s screen in their hand.
An image of a card drawn and a player’s hand with a card selected.
Subscribe to this blog via RSS.
C++ 30
Directx12 11
Mario kart 11
Commercial games development 15
Unity 15
Low-level programming (19) C++ (30) Text based adventure (5) Ex-machina (9) Game engine programming (11) Directx12 (11) Mario kart (11) Land of gold (5) Audio visual production (1) Commercial games development (15) Unity (15) Don't walk by (15)