Phaser 3.2.0 Kaori·¢²¼£¬ÓÅÐãµÄHTML5ÓÎÏ·¿ò¼Ü

×÷Õß: baihuo 2018-03-10 08:36:04
Phaser 3.2.0 Kaori ·¢²¼¡£Phaser ÊÇÒ»¿î·Ç³£ÓÅÐãµÄ HTML5 ÓÎÏ·¿ò¼Ü£¬ÖÂÁ¦ÓÚ·¢Õ¹ PC ¶ËºÍÒƶ¯¶ËµÄ HTML5 ÓÎÏ·£¬ÊÇÒ»¿î²»¿É¶àµÃµÄÉñÆ÷¡£»ùÓÚ Pixi.js£¬Ö§³Ö×ÀÃæºÍÒƶ¯ Web ä¯ÀÀÆ÷¡£ÓÎÏ·¿ÉÒÔͨ¹ýµÚÈý·½¹¤¾ß±àÒë³É iOS¡¢Android ºÍÔ­Éú×ÀÃæÓ¦Óᣠ¿ÉʹÓà JavaScript »ò TypeScript ½øÐпª·¢¡£

¸üÐÂÄÚÈÝ£º

й¦ÄÜ£º

The new Render Texture Game Object is now available. You can clear, fill and draw texture frames to it. The Render Texture itself can be displayed in-game with its own transform, or you can use it as a Bitmap Mask for another Game Object.

Game.resize allows you to resize the game config, renderer and input system in one call.

When Game.resize is called it causes all Scene.Systems to have their resize method called. This is turn emits a resize event which your Scene can respond to. It will be sent the new width and height of the canvas as the only two parameters.

InputManager.resize allows you to update the bounds def and input scale in one call.

Game.Config.roundPixels property added to prevent sub-pixel interpolation during rendering of Game Objects in WebGL and Canvas.

Bug ÐÞ¸´

Arcade Physics Bodies didn't apply the results of allowRotation to the parent Game Object.

InputManager.updateBounds wouldn't correctly get the bounds of the canvas if it had horizontal or vertical translation in the page, causing the scale factor to be off (and subsequently input values to mis-fire)

TileSprite.setFrame now works and allows you to change the frame to any other in the texture.

Swapped the queue loop in the SceneManager to to use _queue.length rather than a cached length

When calling ScenePlugin.launch the data argument is now passed to the queued scenes

Èí¼þÏêÇ飺https://github.com/photonstorm/phaser/releases

ÏÂÔصØÖ·£ºhttps://github.com/photonstorm/phaser/archive/v3.2.0.zip

À´×Ô:¿ªÔ´ÖйúÉçÇø

Ïà¹Ø×ÊѶ