Posts tagged as ' OOP ' ...

Posted By Tommy – Object-Oriented Game Design – Object-Oriented Game Design.

B. L. Hannah’s article about Object-Oriented Game Design is nice because it’s readable. It makes a good argument for object oriented design in games. Generally, game books don’t focus on OOP, perhaps because games are more easily considered in terms of architecture. But this article is great because it gives a clear breakdown of what a game is in 5 basic parts:

  1. Game Entity – Any “things” in the game, such as avatars, obstacles, or enemies.
  2. Game Action – A model that represents any actions that entities invoke. Actions may affect other entities. This model represents the game mechanics.
  3. Game Form – The appearance of the entities when the game is running.
  4. Game State – Data that keeps track of the entities or their forms.
  5. Game Space – The collection of the different objects in the game. It also includes sorting, which may be done to optimize the game.

Using only these five components, basically any computer game can be implemented. Though each componoent has little to do by itself, in conjunction with the others, the relationships form the heart of the system.

From these humble beginnings, the author goes on to outline how each of the levels can be conceptualized.