20th Oct 2019, 12:01 PM
Anton Franzen
Anton Franzen - avatar
5 odpowiedzi
+ 2
https://code.sololearn.com/W3M53xz9i0AH/?ref=app
20th Oct 2019, 12:28 PM
Arnesh
Arnesh - avatar
+ 2
You could set the fillStyle inside the game function. And the other error was as you had a direction variable and a function with the same name.
20th Oct 2019, 12:47 PM
Arnesh
Arnesh - avatar
+ 2
Please don't write sentence or irrelevant words in Relevant Tags section. And follow this tips tor posting a question 👍 https://www.sololearn.com/Discuss/333866/?ref=app
20th Oct 2019, 1:05 PM
Ipang
+ 2
Debugging is part of coding, you should not write a code and let other people debug it for you. First try everything you can to make it perfect by yourself. If after that problems remain that you just can't solve, then ask.
20th Oct 2019, 9:52 PM
HonFu
HonFu - avatar
0
I can't define ctx, thus I ask you help)))
21st Oct 2019, 2:00 PM
Anton Franzen
Anton Franzen - avatar