Prototype 4: Prospector Solitaire

In this chapter, you make your first digital card game. The game you create is a version of the popular Tri-Peaks Solitaire game that has been updated for the digital age.

This chapter includes several new techniques, including using XML configuration files, designing for mobile devices, and your first look at the 2D sprite tools that are included in Unity 4.3 and above.

By the end of the chapter, you’ll have not only a working card game but also a great framework for future card games you wish to create.


  • p. 611 – See note below about changes to GUIText in Unity 4.6.

Unity 4.6 and Unity 5.x Update Deprecating GUIText

With the release of Unity 4.6 came major changes to the GUI (Graphical User Interface) within Unity. This process has continued, and now in Unity 5.4, they have completely deprecated the use of the old immediate mode GUI system. Now, I recommend using the much more robust UGUI (Unity Graphical User Interface) system and have described how to incorporate it into the projects in the first edition of the book here.

Unity 5 Update

Unity made a few changes to their C# code for Unity 5. The PDF below contains full code listings for the Utils.cs code file, which requires small changes due to Unity 5. These few changes are all highlighted in yellow in the code listing.


Starter Package

Tutorial Files