I’m making a game in which I would like all of the world to be inside one variable. But whenever I tried to do it, this problem came up in the JavaScript console:
Uncaught TypeError: Cannot read properties of
undefined (reading 'createGround')
at code.html:36:22
Here’s the link to my code:
Thanks!
Moldy-Mango