Add basic background rendering

This commit is contained in:
asraelite 2018-03-02 01:32:18 +00:00
parent 0c5ad88981
commit fc8d282509
10 changed files with 156 additions and 8 deletions

9
js/consts.mjs Normal file
View file

@ -0,0 +1,9 @@
/*
* 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;