0

Why isn't this working?

I was trying to add a movement animation to this code and it stopped working. As far as I can tell, it is the same as the example in the Game development with JS course, except I removed the down button and it's function. Please tell me how to remedy this. https://sololearn.com/compiler-playground/Wc5anUbfe1l9/?ref=app

2nd Apr 2024, 12:56 PM
Paxton Programer
2 odpowiedzi
+ 3
html, line 6: remove the comma. also, you haven't defined "dir" in js.
2nd Apr 2024, 1:05 PM
Lisa
Lisa - avatar
+ 1
Thanks
2nd Apr 2024, 1:25 PM
Paxton Programer