 How to Create a Game with Phaser 33). ● A Phaser game can utilize different rendering systems. Modern browsers have support for WebGL, which in simple terms consists in “using your graphic card to render page content for better performance” Pty Ltd 2018. All rights reserved the rendering option to “AUTO”, we are telling Phaser to use WebGL if available, and if not, use Canvas. ● Lastly, we create our actual game object. If you run0 码力 | 21 页 | 968.45 KB | 10 月前3 How to Create a Game with Phaser 33). ● A Phaser game can utilize different rendering systems. Modern browsers have support for WebGL, which in simple terms consists in “using your graphic card to render page content for better performance” Pty Ltd 2018. All rights reserved the rendering option to “AUTO”, we are telling Phaser to use WebGL if available, and if not, use Canvas. ● Lastly, we create our actual game object. If you run0 码力 | 21 页 | 968.45 KB | 10 月前3
 Game Development for Human BeingsAUTO means that whether the game will be rendered on a CANVAS element or using WebGL will depend on the browser. If WebGL is available it will be used as the first option (as the performance is better) as the renderer. Phaser supports both Canvas and WebGL based rendering, Phaser.AUTO tells it to pick based on what’s available in the browser (WebGL if available). In the preload phase of our “play” the case of WebGl, it needs to create a new canvas and render everything from that canvas to a sprite object to overlay over the game screen. In both cases (though especially true for WebGl) the debugging0 码力 | 472 页 | 8.46 MB | 10 月前3 Game Development for Human BeingsAUTO means that whether the game will be rendered on a CANVAS element or using WebGL will depend on the browser. If WebGL is available it will be used as the first option (as the performance is better) as the renderer. Phaser supports both Canvas and WebGL based rendering, Phaser.AUTO tells it to pick based on what’s available in the browser (WebGL if available). In the preload phase of our “play” the case of WebGl, it needs to create a new canvas and render everything from that canvas to a sprite object to overlay over the game screen. In both cases (though especially true for WebGl) the debugging0 码力 | 472 页 | 8.46 MB | 10 月前3
共 2 条
- 1













