heisenthurg Posted April 18, 2016 Share Posted April 18, 2016 I would like to build a soccer keep-up game. When you start the game, a ball drops from the top of the screen. On clicking the ball, the ball will bounce up, the idea being you have to keep the ball off the ground and score a point each time you click the ball. Is there anything built into Phaser that would allow me to do this? I imagine it would need to use one of the physics engines, and calculate the angle the ball is clicked and send it the opposite direction. Any ideas would be greatly appreciated. Thanks! Link to comment Share on other sites More sharing options...
rgk Posted April 18, 2016 Share Posted April 18, 2016 yeah this would be quite reasonable to make in phaser. on click add velocity to the y axis to make it pop up and gravity pulls it back down, and the angle of the knee could be calculated by checking two points. Link to comment Share on other sites More sharing options...
Recommended Posts