Building the UI

This time around, our UI is going to be counting a few more things than in our last game. If you remember, we used to increment a score every time a cake was collected. Here, we are going to implement the score, and we will use basically the same thing learned in the previous project. However, we are going to represent the lives of the player with a discrete number of heart icons. Although it's not a super complex UI, it still poses some challenges that we are going to face.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset