as stated i am having trouble making a ball collide with a wall properly in my maze game. Whenever my ball hits a wall, on the occasion it will bounce correctly but majority of the time, it will just clip through the wall. I am struggling a lot with this problem and help would be appreciated.
180 would become -180, which is the same direction on the canvas.
Instead, try setting direction to direction+180
If that doesn't work, there is a Sprite and Ball setting that determines the step size as a multiplier to the speed. You might be taking giant steps and missing the sprites.