So here's the goal. Before the ball is struck, the player should be able to set the targeted angle which he wants the ball to travel. In other words, there will be a key to press, and then by hitting the arrow keys, a sound will move from left to right, changing the position, the angle as it were. So instead of hitting the ball exactly diagonally, (1,1, 2,2, etc), they might choose an angle that doesn't go straight, but doesn't go exactly diagonally. Maybe the angle means that it would travel more along the Y axis, while still travelling X, just less than it would diagonally., so more straight than left or right. Or maybe the angle is sharper than diagonally, so more horizontally than straight. What would be the most efficient way to handle this?
Pages 1