I am making a game where response depends upon where the user touches on the canvas area. So could anyone explain me how to do it with a small snippet. Will be of much help.
Sure I did try to find out myself on the internet but couldn't find one that I could understand clearly.