关于使用phaser初始化,会出现跨域的问题,canvas跨域,
因为默认的渲染方式
WebGL
使用Phaser.CANVAS阔以有效解决
var game = new Phaser.Game(width, height, Phaser.CANVAS, 'index', {
preload: preload,
create: create,
update: update
}, "", true);
关于使用phaser初始化,会出现跨域的问题,canvas跨域,
因为默认的渲染方式
WebGL
使用Phaser.CANVAS阔以有效解决
var game = new Phaser.Game(width, height, Phaser.CANVAS, 'index', {
preload: preload,
create: create,
update: update
}, "", true);