Ask coding questions

← Back to all posts
my repl errors almost immeadiatly
AustinMoore4

when i run the code it gives the error:
TypeError: Cannot read properties of undefined (reading 'createRandom')
at new Game.Map.Cave (/assets/maps/cave.js:10:48)
at Object.enter (/assets/screens.js:35:19)
at Object.switchScreen (/assets/game.js:54:33)
at Object.handleInput (/assets/screens.js:16:22)
at /assets/game.js:19:41
any help would be apreciated

Voters
AustinMoore4
Comments
hotnewtop
KumuPaul

I think you have a typo in one of your script tags. You include assets/entities.js but I think this is what you meant: