In this post, we will see how to detect a slide gesture in 2D mobile games. Slide gesture description In our example, a slide can be in four directions : left, right, bottom and top. We define a minimum distance and a ratio between vertical and horizontal distance to make the gesture completely. Gesture manager […]
An helper class to handle single tap gesture in 2D games. It uses the raycast mechanism to detect collisions.