mirror of
https://github.com/wassname/phaser.git
synced 2026-08-02 13:00:25 +08:00
Tidying up the repo, moving old wip stuff out, clearing up the docs.
This commit is contained in:
@@ -891,7 +891,14 @@ Phaser.TilemapParser = {
|
||||
newSet.columns = (set.imagewidth - set.margin) / (set.tilewidth + set.spacing);
|
||||
newSet.total = newSet.rows * newSet.columns;
|
||||
|
||||
tilesets.push(newSet);
|
||||
if (newSet.rows % 1 !== 0 || newSet.columns % 1 !== 0)
|
||||
{
|
||||
console.warn('TileSet image dimensions do not match expected dimensions. Tileset width/height must be evenly divisible by Tilemap tile width/height.');
|
||||
}
|
||||
else
|
||||
{
|
||||
tilesets.push(newSet);
|
||||
}
|
||||
}
|
||||
|
||||
map.tilesets = tilesets;
|
||||
@@ -969,7 +976,7 @@ Phaser.TilemapParser = {
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user