The touch function is different from the gesture functions as the gesture functions are made to recognize a specific gesture. If this gesture is recognized, a certain function pertaining to this gesture is performed.
Touches, on the other hand, are more open ended. You can write your own gesture codes using the
To test out touches, import the hero images from the second chapter's resources folder and import them into the project as we will need them. Also, as we don't require the gesture functions and initializers, either delete the codes for gesture, or just comment the lines to avoid interference with the touch's function.
To recognize touches, we ...