mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
found bug in level loader
This commit is contained in:
parent
feca76f677
commit
f467aa393a
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue