nodegame-game-template
Version:
Template files for a standard nodeGame game
67 lines (52 loc) • 1.52 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: {
guess: 10000
},
// # Game specific properties
// Number of game rounds to repeat.
ROUNDS: 4,
// Number of coins available each round.
COINS: 1,
// Exchange rate coins to dollars.
EXCHANGE_RATE: 1,
// # 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"
},
pressure: {
description: "Short times to take decisions",
guess: 5000
}
}
};