mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: start files migration nightmare
This commit is contained in:
parent
c4736cc640
commit
bc65e0e207
64 changed files with 1990 additions and 816 deletions
33
modules/define-globals.js
Normal file
33
modules/define-globals.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
"use strict";
|
||||
// define global vabiable, each to be refactored and de-globalized 1-by-1
|
||||
|
||||
let grid = {}; // initial graph based on jittered square grid and data
|
||||
let pack = {}; // packed graph and data
|
||||
let seed;
|
||||
let mapId;
|
||||
let mapHistory = [];
|
||||
let elSelected;
|
||||
|
||||
let notes = [];
|
||||
let customization = 0;
|
||||
|
||||
let rulers;
|
||||
let biomesData;
|
||||
let nameBases;
|
||||
|
||||
let color;
|
||||
let lineGen;
|
||||
|
||||
// defined in main.js
|
||||
let graphWidth;
|
||||
let graphHeight;
|
||||
let svgWidth;
|
||||
let svgHeight;
|
||||
|
||||
let options = {};
|
||||
let mapCoordinates = {};
|
||||
let populationRate;
|
||||
let distanceScale;
|
||||
let urbanization;
|
||||
let urbanDensity;
|
||||
let statesNeutral;
|
||||
Loading…
Add table
Add a link
Reference in a new issue