The Jewel Jam game features a grid of jewels. All of these jewels are objects in the game world. Up until now, you’ve seen how you can add each game object as a separate member variable. In this chapter, you’ll learn about arrays and collections: special structures in C# that you can fill with many objects. That way, you don’t have to create a separate member variable for each jewel.
Unable to display preview. Download preview PDF.