오늘은 일정대로 스스로 구현해보기로 했다. 하던 중, 막히는 부분이 생겼는데 array값의 열값과 벨류값을 구하는데 애를 먹었다. 그래서 여기에 잊어먹지 않도록 필기하려고 한다. function playerblock(){ var blockvar = block('T'); blockvar.forEach(function(row,y){ row.forEach(function(value,x){ if(value!==0){ ctx.fillStyle = 'red'; ctx.strokeStyle='white'; ctx.lineWidth=0.05; ctx.fillRect (x,y,1,1); ctx.strokeRect (x,y,1,1); } }); }); } //blockvar의 값 : //[ [0 ,0 ,0], // [1 ..