Bug fixes

This commit is contained in:
Mashy 2019-02-22 14:07:32 +10:00
parent 8c3a2f1438
commit 5135882423
3 changed files with 4 additions and 7 deletions

View File

@ -25,9 +25,9 @@ const menuNavigationHeight = () => Math.floor(CANVAS_HEIGHT() * 0.3);
const menuNavigationX = () => Math.floor(CANVAS_WIDTH() * 0.5);
const menuNavigationY = () => Math.floor(CANVAS_HEIGHT() * 0.7);
const menuMainWidth = () => Math.floor(CANVAS_WIDTH * 0.7);
const menuMainHeight = () => Math.floor(CANVAS_HEIGHT * 0.5);
const menuMainX = () => Math.floor(CANVAS_WIDTH * 0.4);
const menuMainWidth = () => Math.floor(CANVAS_WIDTH() * 0.7);
const menuMainHeight = () => Math.floor(CANVAS_HEIGHT() * 0.5);
const menuMainX = () => Math.floor(CANVAS_WIDTH() * 0.4);
const menuMainY = () => headerHeight();

2
client/src/scenes/cryps.js Normal file → Executable file
View File

@ -11,7 +11,7 @@ function renderCryps() {
// backgroundColor: '#181818',
resolution: window.devicePixelRatio,
scale: {
mode: Phaser.Scale.RESIZE,
mode: Phaser.Scale.FIT,
width: Math.floor(window.innerHeight * 1.6),
height: Math.floor(window.innerHeight),
max: {

3
client/src/scenes/menu.js Normal file → Executable file
View File

@ -8,7 +8,6 @@ const ItemList = require('./item.list');
const Zones = require('./zones');
const GameList = require('./game.list');
const StatSheet = require('./statsheet');
const SpecSheet = require('./specsheet');
const ItemInfo = require('./item.info');
const FIXED_MENU_SCENES = [
@ -21,7 +20,6 @@ const MAIN_MENU_SCENES = [
'Zones',
'GameList',
'StatSheet',
'SpecSheet',
'ItemInfo',
];
@ -55,7 +53,6 @@ class Menu extends Phaser.Scene {
case 'zone': return this.newMainScene('Zones', Zones, data);
case 'gameList': return this.newMainScene('GameList', GameList, data);
case 'crypStats': return this.newMainScene('StatSheet', StatSheet, data);
case 'crypSpec': return this.newMainScene('SpecSheet', SpecSheet, data);
case 'itemInfo': return this.newMainScene('ItemInfo', ItemInfo, data);
default: return false;
}