Phaser学习笔记

targetplatformer

What Platforms Can I Target With Phaser? Desktop Browsers

Phaser is a JavaScript library designed to run on all major desktop browsers. This includes Internet Explorer 9 and above, Firefox, Chrome, and Safari. Prior to IE9 it didn't support canvas, so if you absolutely need a framework that can handle DOM rendering then Phaser won't be suitable. However, demand for these types of games are becoming next to minimal; if anything, it's shifting the other direction (towards WebGL). Mobile Browsers

On mobile, Phaser runs on iOS5 and above inside of Mobile Safari. On Android, it runs in 2.2 and above in both the stock browser and in Chrome. Chrome is now the standard Android browser, with recent versions even supporting WebGL, but you still can't ignore the millions of legacy Android devices that remain in use.

Firefox OS, Tizen, and Kindle

Thanks to Mozilla, we received a bunch of FFOS test devices, and have begun ensuring that Phaser runs well on them. So far, things look good, and we'll be producing deployment guides in the new year.

We've also seen Phaser games running well on Tizen devices and flawlessly under the Kindle HTML5 wrapper, meaning you can deploy to those devices 'out of the box'. As more web-powered phones start to enter the market, we will be sure to keep Phaser updated for them. Native Apps and Desktop EXEs

There's such a massive choice of excellent game development packages that target creating native apps (Unity, Corona, Loom, and so on), that it wasn't an area we wished to spend much effort covering at first, especially when compared to the underserved mobile browser market.

However, with the development of wrappers like CocoonJS and Ejecta, we're seeing developers using Phaser wrap their games and release them as native apps. So, going into 2014 we will start adding support for CocoonJS direct into the core, as well as support for desktop wrappers like node-webkit.