0
PLEASE WRITE MOVE() AND EAT() FOR GAME----------PLEASE HELPPPPP! (PART 6 and END)
else if(matrix[i][j] == 2){ var xotaker = new Xotaker(j, i, 2); xotakerArr.push(xotaker); } } } } function draw() { for(var i in xotArr){ xotArr[i].mul(); } for(var i in xotakerArr){ xotakerArr[i].move(); } for(var i = 0; i < matrix.length; i++){ for(var j = 0; j < matrix[i].length; j++){ if(matrix[i][j] == 1){ fill("green"); rect(j * side, i * side, side, side); } else if(matrix[i][j] == 2){ fill("yellow"); rect(j * side, i * side, side, side); } } } }
2 ответов
+ 8
Please stop using all caps 😑 for questions.
+ 3
Note to visitors: All 6 questions linked in 1st part, with advice to save temporary part 1 code (provided), copy code into that, link it in Q1 and don't need the rest.
https://www.sololearn.com/Discuss/734595/?ref=app