[*] wrapping for flatXY
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -130,9 +130,15 @@ class Demo {
|
||||
const key = `${ x },${ z != null ? z : y }`;
|
||||
|
||||
const pipMax = this.settings.tile === Tessellate.TILE_STYLES.HEX ? 7 : 9;
|
||||
this.map[key].pips = Tessellate.utils.random(1, pipMax);
|
||||
|
||||
console.log({x, y, z});
|
||||
if (this.map[key]) {
|
||||
this.map[key].pips = Tessellate.utils.random(1, pipMax);
|
||||
|
||||
console.log(key);
|
||||
}
|
||||
else {
|
||||
console.log('ERROR - no tile', key);
|
||||
}
|
||||
}
|
||||
|
||||
pressStart(tap) {
|
||||
|
||||
Reference in New Issue
Block a user