Closed bayruns closed 6 years ago
I don't know what changed but I did a git reset --hard head (although I think I tried this the other night) and things are working now. Strange. It may have been a problem I had last night with something where multiple npm starts were running at once. I'm going to mark this as closed haha
Glad to hear you sorted it out :)
I forked and downloaded the repo, ran npm install, then npm start. I can see the title screen and that works, but once the game starts it crashes in the PlayState update() when it tries to access body.plus.contactNormal.length(). However, I changed the code to avoid using the normals and was able to get the demo to actually display the game map. Obviously the game didn't function without movement and whatnot, but all of the tiles were animated, etc.
I'm running NPM 3.10.10 with your most up to date version. Previously had version 0.9.1 or so and the issue was also present there. From package.json:
Here's the contents of body.plus when it errors out on
Cannot access property length of undefined
on the attempted call to body.plus.contactNormal.length():Contents of body.plus