hi everyone, i'm pretty new at processing and I'm tryin to write a little processing Pong game.
In order to understand when the ball hit the racket, I want the programm to test:
1) if the ball is horizontally beyond the racket
2) if 1 is true: test if the ball is vertically over the racket's lowest point
3) if 2 is true to test if the ball is under the racket highest point
4) if 3 is true, the ball is allowed to bounce
-> otherway, you loose the game.
I wrote this in processing but I don't understand why I loose only and just if the ball is 2 is false (if the ball is under the racket limit) while I expected to loose olso if the ball goes beyond th racket limit over the racket itself.
Here is the code I wrote. (the prblem is at line 70).
Hello everyone, i'm trying to create an applet that randomly shows 5 images from an array of 15, but i'm stuck with the random array thing...
could anyone help me a little?