Advertisement

Arrays and Collections

  • Wouter van Toll
  • Arjan Egges
  • Jeroen D. Fokker
Chapter

Abstract

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag GmbH Germany, part of Springer Nature 2019

Authors and Affiliations

  • Wouter van Toll
    • 1
  • Arjan Egges
    • 2
  • Jeroen D. Fokker
    • 3
  1. 1.RennesFrance
  2. 2.UtrechtThe Netherlands
  3. 3.Department of Information and Computing SciencesUtrecht UniversityUtrechtThe Netherlands

Personalised recommendations