Jump to content

Soccer Keep-up Game - Keep ball up on click?


heisenthurg
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...