Posts: 46097
Threads: 538
Joined: July 24, 2013
Reputation:
109
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 1:01 pm
(August 28, 2023 at 11:59 am)FlatAssembler Wrote: 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?
I have an iPhone, but I have no interest in either PacMan or testing your copyright infringement program.
Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax
Posts: 16444
Threads: 127
Joined: July 10, 2013
Reputation:
65
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 1:03 pm
Why would you not try this out on your damn phone? Are you afraid your crappy programming skillz will blow up your phone?
Posts: 46097
Threads: 538
Joined: July 24, 2013
Reputation:
109
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 1:09 pm
(August 28, 2023 at 1:03 pm)arewethereyet Wrote: Why would you not try this out on your damn phone? Are you afraid your crappy programming skillz will blow up your phone?
They didn't teach him how to use an iPhone at university.
Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax
Posts: 29628
Threads: 116
Joined: February 22, 2011
Reputation:
159
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 2:08 pm
(This post was last modified: August 28, 2023 at 2:09 pm by Angrboda.)
Polling typically isn't fast enough for game programming.
Posts: 35277
Threads: 204
Joined: August 13, 2012
Reputation:
146
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 3:16 pm
Yes, and the pixies will win.
Playing Cluedo with my mum while I was at Uni:
"You did WHAT? With WHO? WHERE???"
Posts: 8231
Threads: 40
Joined: March 18, 2014
Reputation:
54
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 3:17 pm
(This post was last modified: August 28, 2023 at 3:17 pm by Ravenshire.)
(August 28, 2023 at 2:06 pm)FlatAssembler Wrote: (August 28, 2023 at 1:03 pm)arewethereyet Wrote: Why would you not try this out on your damn phone? Are you afraid your crappy programming skillz will blow up your phone?
I have played it on my phone many times, scoring 25159 a few month ago in the Samsung Internet Browser on Android. But tells me nothing about whether it works in Safari on iPhone.
So ask a friend with an iPhone, assuming you have any friends.
The more you post here, the more you sound like an angsty teenager flailing about desperately for validation.
Thief and assassin for hire. Member in good standing of the Rogues Guild.
Posts: 46097
Threads: 538
Joined: July 24, 2013
Reputation:
109
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 4:04 pm
‘Hi! I’ve been studying computer programming for years and I still can’t get it right. Let me install this program on YOUR phone and see what happens.’
Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax