fwenzel / serpent

An Open Web app version of the classic game "snake".
http://fwenzel.github.com/serpent
14 stars 2 forks source link

Prepare for mobile #6

Closed fwenzel closed 11 years ago

fwenzel commented 12 years ago

This game has keyboard controls. No good on mobile! How about emulating those key presses with touch events?

tofumatt commented 12 years ago

Also see pull request #12; it adds some pretty nice iPhone meta info so the game runs fullscreen when added to the homescreen, as well as retina (and non-retina) startup and homescreen icons.

fwenzel commented 11 years ago

You can play it with touch or click now, but pausing is still impossible.

tofumatt commented 11 years ago

And unless someone added touch events the clicks are still slow. If they aren't there yet I'll add them tonight.

Matthew Riley MacPherson | http://lonelyvegan.com

On 2012-10-24, at 6:25 PM, Fred Wenzel notifications@github.com wrote:

You can play it with touch or click now, but pausing is still impossible.

— Reply to this email directly or view it on GitHub.

fwenzel commented 11 years ago

Are click events triggered by touches slower than actual touch events?

tofumatt commented 11 years ago

Substantially; by about 300ms if I recall correctly. If you load the game up on your phone or the iOS simulator you'll notice you… die a lot more :-)

Matthew Riley MacPherson | http://lonelyvegan.com

On 2012-10-24, at 6:38 PM, Fred Wenzel notifications@github.com wrote:

Are click events triggered by touches slower than actual touch events?

— Reply to this email directly or view it on GitHub.

fwenzel commented 11 years ago

touch events and proper appcache were added! I'm going to close this one!