Moved variables into constants file

This commit is contained in:
Mashy
2019-01-14 11:56:20 +10:00
parent 593a2da7b0
commit 5776b1371f
4 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
const Phaser = require('phaser');
const { TEXT, POSITIONS: { COMBAT }, COLOURS } = require('.././constants');
const CRYP_MARGIN = COMBAT.height() / 4.5;
const TEXT_MARGIN = COMBAT.height() / 35;
const CRYP_MARGIN = COMBAT.crypMargin();
const TEXT_MARGIN = COMBAT.textMargin();
const statBarDimensions = (team, iter, margin) => {
const statBarWidth = COMBAT.width() * 0.07;