first of all, sorry for my stupid question. but i really have no idea about it.
how to write matrix condition in a if else function? as i used the matrix to build walls.
for example,
short matrix[]={ 1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,
1,1,1,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,0,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,};
if(matrix[???]==1)
{
…
}
so, what should i put with the ? symbol??
thank u very much!!!