Jump to content

How to make a div "collect coins" with jquery


brooke_theperson

Recommended Posts

You can't do that with jQuery. You need to program that in Javascript. It's called a collision detection algorithm. The simplest ones are either rectangular collision testing or circular collision testing.

 

Looks like MDN even has an article about it: https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection

 

You're entering the realm of game development, I warn you that nothing is easy in game development.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...