Add basic background rendering
This commit is contained in:
parent
0c5ad88981
commit
fc8d282509
10 changed files with 156 additions and 8 deletions
9
js/consts.mjs
Normal file
9
js/consts.mjs
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue