Results 1 to 6 of 6

Thread: Ping-Pong

  1. #1

    Thread Starter
    Addicted Member Ramandeep's Avatar
    Join Date
    Feb 2000
    Posts
    158

    Smile

    Ok I've just recently written a ping-pong game after seeing some other people’s efforts at Planet Source Code and thought I'll have a go.

    The game works fine? I mean it runs, the ball bounces around the play area, deflects from the pads when they are moved in the way, points add up when either the left or right wall is hit. The game also has other fancy features and gives the user option to change names and wall and pad colour etc.

    What I want to know is when is the ball supposed to speed up, If any off you have played the original version on those old consoles please explain to me how the ball is to behave when striking a wall or a players pad.

    THANKS IN ADVANCE!!!

  2. #2
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    Well, I don't know about the speed but did you make the ball bounce at different angles depending on where you hit it on the paddle? Like, a really steep angle if you hit it on the corner and then a really broad one if it's from the center. I never played any old versions of pong but it would probably be more challenging if it goes at different angles
    To understand recursion, one must first understand the concept of recursion.

  3. #3
    New Member
    Join Date
    Dec 2000
    Location
    England
    Posts
    5

    Pong

    I can remember playing Pong as a child in The White Elephant Pub , Ashington , England my Great Grandmother had sunday lunch there you see and sometimes my brother and I would attend and I do not recall the ball speeding up during the game it was basically a test of skill between two players. The ball did as I remeber bounce at different angles according to how it was struck by the paddle.
    -------------
    F*R*A*G*O*F*F
    -------------

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Ashington? Where is that? There is an Ashington near Yeovil in Somerset, I don't suppose it's that one?
    Harry.

    "From one thing, know ten thousand things."

  5. #5
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Pong

    As I reacall, the ball would change angle depending on two factors: Where it strikes the player's paddle, and how the player's paddle is moving. For example, if the ball is moving like so, and hit's the player's paddle if it's not moving...
    Code:
    |    .
    |  .
    |.
    |  .
    |    .
    |      .
    
    But, if it hits the edge...
         .
        .
       .
    | .
    |.
    |  .
    |    .
    |      .
    |
    
    Likewise, if the paddle is moving upwards when the ball hits it...
       .
       .
    | . 
    | .
    |.
    |.
    |  .
    |    .
    
    Pardon my pathetic art skills. I think you get the idea.
    ~Zero the Inestimable

  6. #6
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75
    Hahaha, sorry, this has no relevance to anything whatsoever, but i just have to comment on DarkMoose's info thinger... laughing my @$$ off after that one

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width