0

Can anyone help me with my code.

This is my third time trying this so hopefully it is successful, anyhow, I have been working through the course "Game Development with JS," However, I have gotten a bit stuck at lesson 23 and cannot seem to make the coding work despite my best efforts, if anyone has an idea on how to improve/fix this, i would be really appreciative of the assistance. Kind regards https://code.sololearn.com/W0XNa76I78VX/?ref=app

8th Feb 2023, 1:08 AM
Luke Tompkins
Luke Tompkins - avatar
3 Respuestas
+ 3
Hi Luke, you hadn't declared your id for the jump button, nor the variable count. Also, all of that needed to be wrapped in that window.onload function. Check out my changes below. I hope it's what you want. https://code.sololearn.com/W3G5NndAg8Y0/?ref=app
8th Feb 2023, 1:55 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Thank you so much!
8th Feb 2023, 2:08 AM
Luke Tompkins
Luke Tompkins - avatar
+ 1
Happy to help matey. Enjoy your coding!
8th Feb 2023, 2:42 AM
Ausgrindtube
Ausgrindtube - avatar