papercats/game-core/game-consts.js
StevenJoeZhang b535f5c354 Format code
2019-01-16 11:07:52 +08:00

17 lines
273 B
JavaScript

function constant(val) {
return {
value: val,
enumerable: true
};
}
var consts = {
GRID_SIZE: constant(80),
CELL_WIDTH: constant(40),
SPEED: constant(5),
BORDER_WIDTH: constant(20),
MAX_PLAYERS: constant(81)
};
Object.defineProperties(module.exports, consts);