Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 11:59 am
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?
Posts: 44051
Threads: 529
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
‘But it does me no injury for my neighbour to say there are twenty gods or no gods. It neither picks my pocket nor breaks my leg.’ - Thomas Jefferson
Posts: 15205
Threads: 116
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?
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 44051
Threads: 529
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
‘But it does me no injury for my neighbour to say there are twenty gods or no gods. It neither picks my pocket nor breaks my leg.’ - Thomas Jefferson
Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 2:06 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?
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.
Posts: 28335
Threads: 114
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: 34734
Threads: 200
Joined: August 13, 2012
Reputation:
145
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 3:16 pm
Yes, and the pixies will win.
Dying to live, living to die.
Posts: 7969
Threads: 38
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: 15205
Threads: 116
Joined: July 10, 2013
Reputation:
65
RE: Is my SVG PacMan now playable in Safari on iPhone?
August 28, 2023 at 3:25 pm
(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.
I am not going to try on my Iphone. You write buggy programs. Not happenin' Cap'n.
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 44051
Threads: 529
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
‘But it does me no injury for my neighbour to say there are twenty gods or no gods. It neither picks my pocket nor breaks my leg.’ - Thomas Jefferson
|