Search:

Type: Posts; User: program man

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    4,077

    thanks

    I already have tried the way you mentioned where the computer paddle goes exactly where the ball is and it slows the ball down and makes the computer unbeatble obviously, so I'll maybe try guessing...
  2. Replies
    20
    Views
    4,077

    I've already taken care of the angle the ball...

    I've already taken care of the angle the ball bounces off at. While I'm sure your method works great, my way was much easier:
    totalx=20;
    totaly=200;
    ballx=.16;
    bally=.07;
    //first paddle...
  3. Replies
    20
    Views
    4,077

    Yeah I know

    I know that, but if someone held a button down it would ignore the other player. How do I do it?
  4. Replies
    20
    Views
    4,077

    keyboard

    How do I make the computer accept input from 2 users at the same time to move corresponding paddles? Please, if someone could just help me with this I could finish the game.
  5. Replies
    20
    Views
    4,077

    paddles

    I know that, but how do you make it move at that set speed, hitting the ball sometimes but missing it other times? How, do I make the bal stop fashing so much? It's really annoying. And how do I...
  6. Replies
    20
    Views
    4,077

    computer paddle movement

    How can I make the computer paddle move so that the computer is beatable? If I just set the y-variables of the paddle (top and bottom) equal to the where the ball is then the computer is unbeatable,...
  7. Replies
    20
    Views
    4,077

    keyboard input

    OK, I got the ball moving and bouncing, but how do I make the paddle move when arrow keys are pressed? Do you use GetKeyPress? Would this work:
    ypaddle=250;
    testWindow.GetKeyPress(ckey);
    if...
  8. Replies
    20
    Views
    4,077

    PONG

    that didn't even make the ball move, and secondly I'm a beginner so I don't know what "ballx++" and "bally++" means. I tried that and the ball didn't move. I'm only familiar with something like...
  9. Replies
    20
    Views
    4,077

    PONG graphics

    I'm sorry, I don't know which one, my teacher just gave us all the disk to put the software onto our regular C++ program. I can tell you I have to include <graphics.h> and using namespace std, but...
  10. Replies
    20
    Views
    4,077

    PONG as my first game

    As my first C++ game I'm making PONG. I have a good understanding of loops, ifs, functions, and graphics and am willing to learn other things to make this work. I need to make the ball move and...
Results 1 to 10 of 10