Higher or Lower - a simple card game
I’ve been playing around with data binding recently and I wanted to see if I could create a fully functional card game within Rive.
So I’m using data binding to store the value of each card.
And to change the value of the card, I’m using events that triggers for each value. So for example if the event called ‘101’ get’s fired, it will change the value of card01 to 14 (since the ace is the highest card)
And then I have 2 values to control the score system. One for the current streak, which just adds +1 to the value each time the user guesses correct.
And if the user guesses incorrectly, it will check if the value of the ‘correct number’ is higher than the value of ‘best’ and if it’s higher, it will update.
Here’s a live demo for you to try 😁
Would love to see your high score 😁