client/game/Global.js
Function Global
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Global() {
this.canvas = document.getElementById('gameCanvas');
this.ctx = this.canvas.getContext('2d');
this.uiMode = 0;
this.playerId = null; // identifier, secret