Ch 12-Paddleball program from book (Sample Programs)

by kbauch, Thursday, January 29, 2015, 21:29 (789 days ago)

I'm a noob and I have been reading the book, which I love btw. I have been playing around with the paddleball program and I can't get it to work properly. I noticed that it was trying to spriteload "green ball.png" which did not exist so I created and saved it to the proper directory. When I run it, the text output is correct but when I press enter to start it will just output "You bounced the ball 0 times". The paddle and the ball appear in the graphics output area but the paddle does not respond. I ran the debugger and it looks like the program never enters the while loop at line 27, instead it just goes right to the print statement on line 62. I have double checked the code and it looks correct. Just wondering if the program works for anyone else. Oh, I also commented out all of the wav statements to see if that had any effect, which it didn't.


Complete thread:

 RSS Feed of thread

powered by my little forum