improcket/js/consts.mjs
2018-03-03 00:04:17 +00:00

11 lines
363 B
JavaScript

/*
* Constants that do not change during gameplay.
* This can kind of be treated like a configuration file, I guess.
*/
// Pixel length of sector.
export const SECTOR_SIZE = 512;
// Star count per sector.
export const STAR_DENSITY = (SECTOR_SIZE ** 2) / 10000;
// G, G-boy, The big G, Mr. G, g's big brother, G-dog
export const GRAVITATIONAL_CONSTANT = 0.01;