Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    Ok, I'll be back tomorrow.


    Also posted at: http://www.java-forums.org/new-java/68548-pong-paddle-collision-algorithm-help.html
  2. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    It will show you where the ball and paddle are when they collide and how their locations change because of the logic of the code. I assumed you wanted to find out what the code was doing so you...
  3. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    Reduces output if you don't print values when there isn't a collision about to happen.

    For events like collisions add some eye catchers like >>>>>> HIT RIGHT <<<<<<
    To save having to do...
  4. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    It'd be easier to read if the 4 values were on one line.
    Ball X=310 Y=310, Right Paddle X=??, Y=404 Left Paddle X=??? Y=100

    What is the x values for the paddles?
    Also there should be a...
  5. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    The print out should help you see why the ball stutters when near the paddle. It should show which of the great number of conditions in the if statement is true when the ball changes direction.
    ...
  6. Replies
    11
    Views
    2,904

    Re: Pong--paddle collision algorithm help

    Can you describe what it does incorrectly?
    What do you see when the ball does not properly bounce off the paddle? Can you describe what happens?
    Does the ball completely ignore the paddle or does...
Results 1 to 6 of 6