0

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!

  • Can't help without seeing any of the code. Also, please be more specific. Does everything display correctly at the start, before the ball starts moving, or are pieces missing, and if so, what? At minimum you need to post the main while loop. – Cliff B Dec 2 '15 at 7:02
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .