papercats/game-core/game-consts.js

17 lines
273 B
JavaScript
Raw Normal View History

2017-10-30 22:24:39 -04:00
function constant(val) {
2019-01-15 10:42:15 -05:00
return {
value: val,
enumerable: true
};
2017-02-25 18:52:52 -05:00
}
var consts = {
2019-01-15 10:42:15 -05:00
GRID_SIZE: constant(80),
CELL_WIDTH: constant(40),
SPEED: constant(5),
BORDER_WIDTH: constant(20),
MAX_PLAYERS: constant(81)
2017-02-25 18:52:52 -05:00
};
2017-10-30 22:24:39 -04:00
Object.defineProperties(module.exports, consts);