Advertisement

Game Objects in a Structure

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

Abstract

Games often require that game objects are adhering to some kind of structured game world. Many board or puzzle games have this requirement. These games impose a set of rules, which binds the playing pieces to certain positions or configurations on the playing board. Furthermore, game objects can be part of a hierarchy. For example, a tire object is part of a wheel object, which, in turn, could be a part of a car object. In this chapter we show how to create these kinds of structures using the collection classes. We introduce the scene graph as a representation of this structure. We also talk about local and global (world) positions of game objects.

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