When I made my SVG PacMan, it wasn't playable in Safari on iPhone because it didn't respond to taps fast enough there. However, I wasn't able to diagnose the problem.
In that PacMan game, I was using two `setInterval` loops, one for small animations (such as opening and closing the PacMan's mouth), and other for large animations (moving PacMan and ghosts from a field to a field). A few months ago, I modified it to use only one loop, and to use counters to keep track of whether to do a small animation or a large one.
That change apparently solved the problem of the mouth animation being jittery in Firefox.
I am wondering whether it also somehow solved the problem of the game being unresponsive in Safari on iPhone. Does anybody here have an iPhone to test that?
In that PacMan game, I was using two `setInterval` loops, one for small animations (such as opening and closing the PacMan's mouth), and other for large animations (moving PacMan and ghosts from a field to a field). A few months ago, I modified it to use only one loop, and to use counters to keep track of whether to do a small animation or a large one.
That change apparently solved the problem of the mouth animation being jittery in Firefox.
I am wondering whether it also somehow solved the problem of the game being unresponsive in Safari on iPhone. Does anybody here have an iPhone to test that?