Billiards
Posted: Sat Feb 04, 2006 1:10 am
I am making a simple billiards game. I have a problem. The way billiards works, you have to sink the 9Ball, but you have to hit the ball with the lowest number first. Now, there are two ways I could have this:
A. I could leave it to the players' judgment, but I would need to be able to reset to how it was before the player shoots the ball.
B. I could have the game decide, but I would need to know what ball was hit first, what ball had to be hit first, and if they were not the same, reset to how it was before you shot and change a variable (whiteFollowMouse) to 1.
So either way, I need to reset to the state before the shot and preferably set whiteFollowMouse to 1. I can send a link to a .zip file with the .ged file and the data folder and .exe file. basically, move the target ball which follows the mouse and left-click to fire the ball. When the whiteFollowMouse variable is 1,(currently when the white ball gets sunk) it will follow the mouse until you drop it with right-click.
A. I could leave it to the players' judgment, but I would need to be able to reset to how it was before the player shoots the ball.
B. I could have the game decide, but I would need to know what ball was hit first, what ball had to be hit first, and if they were not the same, reset to how it was before you shot and change a variable (whiteFollowMouse) to 1.
So either way, I need to reset to the state before the shot and preferably set whiteFollowMouse to 1. I can send a link to a .zip file with the .ged file and the data folder and .exe file. basically, move the target ball which follows the mouse and left-click to fire the ball. When the whiteFollowMouse variable is 1,(currently when the white ball gets sunk) it will follow the mouse until you drop it with right-click.