Phaser初始化 跨域

关于使用phaser初始化,会出现跨域的问题,canvas跨域,

因为默认的渲染方式

WebGL

使用Phaser.CANVAS阔以有效解决


 

var game = new Phaser.Game(width, height, Phaser.CANVAS, 'index', {

 preload: preload,

 create: create,

 update: update

}, "", true);

猜你喜欢

转载自blog.csdn.net/WEIGUO19951107/article/details/81431391