   Pong Troubles
  I've been creating a pong clone for the last few days but I've gotten stuck at the ball movement. How exactly do I handle it? I know that it needs to move towards one of the paddles but how exactly do I get it to bounce off the walls? (I just need to know about the walls I think I can figure out the rest). Pseudocode would be fine or any general code/tips (I'm using HGE btw).   
  You could go something like this :-Assuming you have a vel variable which goes likevel = 2.0f;if(pos.x <= 0){   if(vel >= 0 ) vel = -2.0f;}if(pos.x >= WIDTH){   if(vel <= 0) vel = 2.0f;}// similarly handle walls on y-axisI don't take care of the radius or ball(I will let you figure that out) its easy though once you have it worked out without the radius.;  while in the game loopball.x+=xVelocity_Of_Ball;ball.y+=yVelocity_of_Ball;if(Ball.x<=0){ball.x=0xVelocity_of_Ball= -xVelocity_of_Ball;}if(Ball.x>=screen_width){ball.x=screen_width( minus ball radius if .x is the left of ball)xVelocity_of_ball= -xVelocity_of_ball;}if(Ball.y<=0){ball.y=0;YVelocity_of_Ball=-yVelocity_of_Ball;}etc. etc.