0

iOS doesn't support WebGL yet, and I need to write a 3D-ish game like Temple Run for iOS. Is it possible to write a game like that in ordinary Canvas? Or should I give up on this?

Thanks.

  • Is there a reason you can't use native SDKs? – kevboh Jun 19 '12 at 11:45
  • You can enable WebGL on current iOS versions, as I describe in [this answer](http://stackoverflow.com/a/8954930/19679), but the performance is far slower than anything you'd do natively in OpenGL ES. I don't think it will catch up for quite a while, based on what I've seen. – Brad Larson Jun 25 '12 at 23:04
  • Hey Brad, I thought a Temple run was developed on Unity3D. But apparently it was not. Any idea what framework was used for it. – B K Jul 11 '12 at 13:58

1 Answers1

4

Personally I would not try to write a Temple Run like game running in a Canvas and wrapped in PhoneGap on iOS. There is an issue where Safari on iOS runs using the Nitro JavaScript engine which is quite fast but apps that use a UIWebView like PhoneGap are limited to using a slower version of the JavaScript interpreter. This causes problems when you are trying to write games like Temple Run.

You can write games in PhoneGap but the type of game you are talking about would really stretch the system to the max. I don't want to discourage you, I just want you to have the info.

Simon MacDonald
  • 23,253
  • 5
  • 58
  • 74