I want with this function:
game=createGame({
texturePath:‘textures/’,
generate: function(x,y,z) {
const rx = Math.floor(Math.abs(x)) % 10;
const ry = Math.floor(Math.abs(y)) % 10;
const rz = Math.floor(Math.abs(z)) % 10;// Si cualquiera de tus condiciones se cumple, devuelve 1 (brick) if ((rx < 5 && ry < 5 && rz < 5) || (rx >= 5 && ry < 5 && rz < 5) || (rx < 5 && ry >= 5 && rz < 5) || (rx < 5 && ry < 5 && rz >= 5)) { return 1; // Material 'brick' (índice 0 en tu array de materials) } return 0; // Vacío},
chunkDistance: 1,
distance: 2,
materials: [‘brick’]
})
Generate this, but with less lag:
Its possible? Thanks anyway!!!