Hi I've been working on/stuck on breakout for about a month now and still can't seem to figure out what's wrong with my code. My program compiles without any errors but if I run it, it doesn't work. If I comment out various parts of my code I have different issues. Each time a window will open. Depending on what i remove, sometimes the ball will appear, other times it won't. If the ball appears the paddle may move very sporadically and only if i click or move the mouse randomly. Other times, nothing will move at all. Other times the paddle will appear without the ball but no matter what I do nothing happens. I really need help but don't even know what part of my code to post. Help!
1 Answer
Just an update:
Problem solved. I made a few adjustments and the game was still very patchy. I was advised to run the staff solution and realised it was running exactly the same way. I submitted the pset and got a 1.0 so I guess it was just my computer.