diff --git a/v3/src/checksum.js b/v3/src/checksum.js index 09c98b059..279d0a7c6 100644 --- a/v3/src/checksum.js +++ b/v3/src/checksum.js @@ -1,4 +1,4 @@ var CHECKSUM = { -build: '2e773640-5a69-11e7-ad23-414a67d4aeba' +build: '541299d0-5a78-11e7-bceb-fd404c07e0b9' }; module.exports = CHECKSUM; \ No newline at end of file diff --git a/v3/src/physics/impact/CollisionMap.js b/v3/src/physics/impact/CollisionMap.js index 4ff615b31..f95e81e30 100644 --- a/v3/src/physics/impact/CollisionMap.js +++ b/v3/src/physics/impact/CollisionMap.js @@ -110,13 +110,16 @@ var CollisionMap = new Class({ prevTileX = -1; } - console.group('VX'); - console.log('pxOffsetX', pxOffsetX); - console.log('tileOffsetX', tileOffsetX); - console.log('firstTileY', firstTileY); - console.log('lastTileY', lastTileY); - console.log('tileX', tileX); - console.log('prevTileX', prevTileX); + if (window.debugslopes) + { + console.group('VX'); + console.log('pxOffsetX', pxOffsetX); + console.log('tileOffsetX', tileOffsetX); + console.log('firstTileY', firstTileY); + console.log('lastTileY', lastTileY); + console.log('tileX', tileX); + console.log('prevTileX', prevTileX); + } if (tileX >= 0 && tileX < mapWidth) { @@ -141,7 +144,10 @@ var CollisionMap = new Class({ t = this.data[tileY][tileX]; - console.log('Tile at', tileX, 'x', tileY, '=', t); + if (window.debugslopes) + { + console.log('Tile at', tileX, 'x', tileY, '=', t); + } if (t === 1 || t > this.lastSlope || (t > 1 && this.checkDef(res, t, x, y, rvx, rvy, width, height, tileX, tileY))) { @@ -157,13 +163,16 @@ var CollisionMap = new Class({ x = res.pos.x; rvx = 0; - console.log('>>> Hit solid tile <<<'); + if (window.debugslopes) + { + console.log('>>> Hit solid tile <<<'); - console.log('tileX', tileX); - console.log('tilesize', tilesize); - console.log('pxOffsetX', pxOffsetX); - console.log('tileOffsetX', tileOffsetX); - console.log('=', res.pos.x); + console.log('tileX', tileX); + console.log('tilesize', tilesize); + console.log('pxOffsetX', pxOffsetX); + console.log('tileOffsetX', tileOffsetX); + console.log('=', res.pos.x); + } // 9 * 32 = 288 // - 16 = 272 @@ -176,7 +185,10 @@ var CollisionMap = new Class({ } } - console.groupEnd(); + if (window.debugslopes) + { + console.groupEnd(); + } } // Vertical