Skip to content
patrickklug edited this page Nov 4, 2013 · 1 revision

GDT relies a lot on weightings. In the code these are most often in the form of genreWeightings or audienceWeightings and generally are floating numbers between 0.6 and 1 and are interpreted by the game code in different places. The meaning of the values can be illustrated as follows:

  • 0.6: --- (terrible)
  • 0.7: -- (bad)
  • 0.8: - (okay)
  • 0.9: ++ (good)
  • 1.0: +++ (great)

Example of how these are used in the code:

//topic definition for Game Dev
{ 
	id: "Game Dev",
	name: "Game Dev".localize("game topic"),	
	genreWeightings: [.6, .7, .6, 1, .6, .8],	
	audienceWeightings: [0.9, 1, 0.7] }	
}

genreWeightings

genreWeightings are defined as an array of 6 numbers, corresponding to the six possible genres:

  1. Action
  2. Adventure
  3. RPG
  4. Simulation
  5. Strategy
  6. Casual

In short genreWeightings describe how well something matches with a given genre. In the case of the Game Dev topic [.6, .7, .6, 1, .6, .8] describes that Game Dev is great fit for the Simulation genre while it's a terrible fit for Action, RPG and Strategy.

audienceWeightings

audienceWeightings are defined as an array of 3 numbers, corresponding to the three possible audiences:

  1. Young
  2. Everyone
  3. Mature

In short audienceWeightings describe how well something matches with a given audience. In the case of the Game Dev topic [0.9, 1, 0.7] describes that Game Dev is great fit with Everyone, good for Young audiences but is a bad fit for the Mature audience.

Clone this wiki locally