I’m following the video on FreeCodeCamp’s YouTube page titled: Intro to Game Development with JavaScript - Full Tutorial
I’ve done everything up through the end of the chapter called Collison Detection with Bricks. The ball does bounce off the bricks, but the bricks do not disappear. Getting the bricks to disappear is the last step before continuing on to the next chapter, Pause Screen.
I’ve set the markForDeletion
property in brick.js to be False
by default, then True
when a collision is detected. I’ve check the other code like 4 times over and looked at it for over an hour and a half. I can’t detect anything missing/incorrect. I think I need another set of eyes.
I hope it’s not a really silly mistake, but it probably is.
Here’s what I have in codesandbox.io right now:
https://codesandbox.io/s/red-sun-pv80tg