From 3c5199d7100a5cd9afaa14e2d2e54b56938a33a7 Mon Sep 17 00:00:00 2001 From: Mashy Date: Mon, 19 Nov 2018 22:09:47 +1000 Subject: [PATCH] grep --- client/src/scenes/cryp.info.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 client/src/scenes/cryp.info.js diff --git a/client/src/scenes/cryp.info.js b/client/src/scenes/cryp.info.js deleted file mode 100755 index 7679e1df..00000000 --- a/client/src/scenes/cryp.info.js +++ /dev/null @@ -1,23 +0,0 @@ -const Phaser = require('phaser'); - -const ROW_WIDTH = 400; -const ROW_HEIGHT = 200; -const ROW_FILL = 0x888888; - -const TOP_MARGIN = 50; -const ROW_MARGIN = 50; -const TEXT_MARGIN = 24; - - -class CrypInfo extends Phaser.GameObjects.Rectangle { - constructor(scene, cryp, i) { - const X_ORIGIN = 0; - const Y_ORIGIN = (i * ROW_HEIGHT + ROW_MARGIN) + TOP_MARGIN; - super(scene, X_ORIGIN, Y_ORIGIN, ROW_WIDTH, ROW_HEIGHT, ROW_FILL * Math.random()); - this.setOrigin(0); - this.cryp = cryp; - scene.add.text(X_ORIGIN, Y_ORIGIN + (TEXT_MARGIN * 0), cryp.name, { fontFamily: 'Arial', fontSize: 24, color: '#ffffff', fontStyle: 'bold' }); - scene.add.text(X_ORIGIN, Y_ORIGIN + (TEXT_MARGIN * 1), cryp.stamina.base, { fontFamily: 'Arial', fontSize: 24, color: '#ffffff', fontStyle: 'bold' }) - } -} -module.exports = CrypInfo;