The app we will build in this chapter is the second (and last) game of this book, after the Pong game we built in Chapter 4, Pong Game - 2D Animations and Gestures. This time, we'll deal with dice, and create a revisited version of the Knockout dice game.
The app will contain two screens: the first one will only contain a single dice that the user will be able to roll. This will show the animation that you'll create with Flare.
The screen will look similar to the following screenshot:
The second screen will contain the Knockout game. The rules are very simple:
- The player plays against the device (which we will call AI in the app).
- The player clicks the Play button. This will animate two dice (with six faces, from 1 to 6), and, after a few seconds, a random result will be generated.
- The sum of the two dice will be added to the player's score...