I'm creating a small 2D game. The objective is to bounce a ball with a kind of tennis paddle. The tennis paddle is being moved using the accelerometer input. I'd like to know how could I move the ball, relatively to its distance to the paddle center (more far, more acceleration it gets).
How to simulate a bouncing ball effect in a 2d game
No replies to this topic