Jump to content

Throwing basketball into hoop


OAOD_iNspire
 Share

Recommended Posts

Hi, 

This is my first game and im working with Phaser . I have made progress far, its a basic basketball shoot and score game. 

I am the point where i write the logic to throw the ball into the net. Can I get some assistance on how to go about this ? 

Demo link : basket.inspireleadership.biz 

 

Link to comment
Share on other sites

  • OAOD_iNspire changed the title to Throwing basketball into hoop

this is just an idea, your game's setup is a little tricky. like it's sort of 3D setup right.

I would like make an off-calculation that's in sideway/2D like angrybird. then i would use the calculation i get from that sideway shoot to find out if the ball would reach its target or not.

aesthetically, you would also want to set your ball's size smaller as it gets "near" the ring, to give the illusion that your ball is traveling. you'd also want to rotate it "foward", like rotate it along it's x axis.

hope that helps.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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