nodegame-game-template
Version:
Template files for a standard nodeGame game
68 lines (53 loc) • 1.57 kB
JavaScript
/**
* # Game settings definition file
* Copyright(c) {YEAR} {AUTHOR} <{AUTHOR_EMAIL}>
* MIT Licensed
*
* The variables in this file will be sent to each client and saved under:
*
* `node.game.settings`
*
* The name of the chosen treatment will be added as:
*
* `node.game.settings.treatmentName`
*
* http://www.nodegame.org
* ---
*/
module.exports = {
// Variables shared by all treatments.
// #nodeGame properties:
/**
* ### TIMER (object) [nodegame-property]
*
* Maps the names of the steps of the game to timer durations
*
* If a step name is found here, then the value of the property is
* used to initialize the game timer for the step.
*/
TIMER: {
instructions: 60000
},
// # Game specific properties
// Number of game rounds to repeat.
ROUNDS: 4,
// Number of coins available each round.
COINS: 100,
// Exchange rate coins to dollars.
EXCHANGE_RATE: 0.05,
// # Treatments definition.
// They can contain any number of properties, and also overwrite
// those defined above.
// If the `treatments` object is missing a treatment named _standard_
// will be created automatically, and will contain all variables.
treatments: {
standard: {
description: "Longer time",
bidTime: 30000
},
pressure: {
description: "Short times to take decisions",
bidTime: 10000
}
}
};