export function obfuscate(world) { let tempWorld = world; for(let x = 0; x < tempWorld.width; x++){ for(let y = 0; y < tempWorld.height; y++){ if (tempWorld.data[x][y].mask === true) { tempWorld.data[x][y].type = 0; }; tempWorld.isObfuscated = true; } } return tempWorld; }