for(j in blocks){
if(rays[i].lx >= blocks[j].x && rays[i].ly >= blocks[j].y && rays[i].ly <= blocks[j].y + 32){
rays[i].radius = 50;
}else{
rays[i].radius = 100;
}
//if(rays[i].ly > blocks[j].y && rays[i].ly < blocks[j].y + 32){
// rays[i].radius = 50;
//}
}