Ch 12-Paddleball program from book (Sample Programs)
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:
- Ch 12-Paddleball program from book -
kbauch,
2015-01-29, 21:29
- Ch 12-Paddleball program from book -
cub256,
2015-02-02, 14:59
- Very stange, but it helps! - cub256, 2015-02-02, 21:00
- Ch 12-Paddleball program from book -
cub256,
2015-02-02, 14:59