From f467aa393a8f2fa5126f8c89ca981e5951980488 Mon Sep 17 00:00:00 2001 From: logsol Date: Thu, 12 Mar 2015 19:53:08 +0100 Subject: [PATCH] found bug in level loader --- app/Game/Client/Loader/TiledLevel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Game/Client/Loader/TiledLevel.js b/app/Game/Client/Loader/TiledLevel.js index 7ef83d6..bd040fa 100644 --- a/app/Game/Client/Loader/TiledLevel.js +++ b/app/Game/Client/Loader/TiledLevel.js @@ -110,7 +110,7 @@ function (Parent, Settings, Nc) { }; - + TiledLevel.prototype.createNonCollidingTiles = function(options) { var data = options.data; @@ -136,7 +136,7 @@ function (Parent, Settings, Nc) { width: Settings.TILE_SIZE, height: Settings.TILE_SIZE, x: (i % options.width) * Settings.TILE_SIZE, - y: parseInt(i / options.height , 10) * Settings.TILE_SIZE, + y: parseInt(i / options.width , 10) * Settings.TILE_SIZE, } ); }