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); } } } }

22nd Sep 2017, 5:14 PM
Azat
Azat - avatar
2 Antworten
+ 8
Please stop using all caps 😑 for questions.
22nd Sep 2017, 5:23 PM
Manual
Manual - avatar
+ 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
22nd Sep 2017, 5:20 PM
Kirk Schafer
Kirk Schafer - avatar