HTML5 游戲開發框架,Phaser 2.4.1 發布

jopen 9年前發布 | 9K 次閱讀 Phaser

Phaser 是一個開源的桌面和移動 HTML5 2D 游戲開發框架,支持 JavaScript 和 TypeScript。

HTML5 游戲開發框架,Phaser 2.4.1 發布

Phaser 2.4.1 "Ionin Spring" 發布,此版本是一個小版本,包括一些 Creature 運行時更新和一些緩存問題修復。同時還修改了 Grunt 構建腳本,所以所有的第三方庫 (such as Creature, P2, gl-matrix and PIXI) 可以很好的與 Phaser 運行。

詳細更新內容:

更新

  • The Creature Runtimes have been updated to the latest versions and the Phaser.Creature class updated to use them.

  • GameObjectFactory.creature is a new method to help with quick Creature animation object creation.

  • Cache.getPixiTexture will now search the image cache if it couldn't find a texture in the PIXI.TextureCache global array, if it finds a matching image in the image cache then it returns a new PIXI.Texture based on it.

  • Cache.getPixiBaseTexture will now search the image cache if it couldn't find a BaseTexture in the PIXI.BaseTextureCache global array.

Bug 修復

  • Fixed Cache.getKeys to use the _cacheMap (thanks @jamesgroat #1929)

  • Safari on OSX wouldn't recognise button presses on trackpads (thanks JakeCake)

  • Cache.removeImage now calls destroy on the image BaseTexture, removing it from the PIXI global caches without throwing a warning.

下載:


 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!