object detection in bitmmap javacanvas
Posted
by
user1538127
on Game Development
See other posts from Game Development
or by user1538127
Published on 2012-09-28T08:27:58Z
Indexed on
2012/09/28
9:51 UTC
Read the original article
Hit count: 284
i want to detect clicks on canvas elements which are drawn using paths. so far i have think of to store elements path in javascript data structure and then check the cordinates of hits which matches the elements cordinates. i belive there is algorithm already for thins kind o cordinate search. rendering each of element path and checking the hits would be inefficient when elements number is larger. can anyone point on me that?
© Game Development or respective owner