作为年度开端的一部分,Phaser 刚刚推出了2.2.2版本,带来了大量的升级和bug修复。Phaser是一个用于开发桌面和移动浏览器HTML5游戏,有趣、开源、快速的2D游戏制作框架,同时还提供了使用Pixi.js实现的2D画布和WebGL渲染功能。

特新:
- Phaser.Loader now supports BLOB urls for audio files (thanks @aressler38 #1462)
- Line.reflect will calculate the reflected, or outgoing angle of two lines. This can be used for Body vs. Line collision responses and rebounds.
- Line.normalAngle gets the angle of the line normal in radians.
- Line.normalX and Line.normalY contain the x and y components of the left-hand normal of the line.
- Line.fromAngle will sets this line to start at the given x and y coordinates and for the segment to extend at angle for the given length.
- BitmapData.drawGroup draws the immediate children of a Phaser.Group to a BitmapData.
- See Change Log for details
除了IE 9+、Firefox、Chrome、Safari及Opera等桌面浏览器之外,Phaser还支持Mobile Chrome(Android 2.2+)及Mobile Safari(iOS 5+)等移动浏览器。使用Phaser进行游戏开发没有任何语言设定,并且,在Phaser官网上,还提供了非常详细的开发指南,想要一探究竟的开发者不妨直接登陆Phaser查看。
Phaser 2.2.2 下载传送门– Github
Linux公社原创翻译频道:http://www.linuxidc.com/topicnews.aspx?tid=15
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-01/111653.htm
