Sign in to follow this  
gameplay

Need fix for Table Tennis game

Recommended Posts

The freeware table tennis game is coded in C++ using OpenGL and SDL.

The game source, installer, and a video showing the problem are attached.

 

PROBLEM WITH CURRENT VERSION
When the human controlled player at the bottom of the screen swings the paddle quickly right or left just prior to and while making contact with the ball, the ball has more side spin and curve which often results in the computer controlled paddle at the top of the screen hitting the ball backwards since the computer paddle's position remains aimed sideways rather than changing the paddle position toward the human controlled player.  The problem should be in the Bat.cpp method BatControllerAI::FindWhereToHitBack().
 
GAME CONTROLS
The human controlled paddle at the bottom of the screen is controlled with the mouse.  Pressing the right mouse button enables the paddle to swing from the right side.  Press the left mouse button enables the paddle to swing from the left side.  
 
If you can upload a version with the fix I'd greatly appreciate it.  Thanks in advance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this