力@微信小游戏 的内容(查看所有内容)
请教微信小游戏的问题
力
2018-12-28
请问这是什么问题啊,代码如下,
console.log(canvas);
const conf = {
width: Constants.ASSETS_WIDTH,
height: Constants.ASSETS_HEIGH,
canvas: canvas,
renderer: Phaser.CANVAS
// parent: 'phaser',
// transparent: false,
// antialias: false,
// state: { init:this.init, preload: this.preload, create: this.create, update: this.update, render:this.render },
// scaleMode: Phaser.ScaleManager.EXACT_FIT
};
this.game = new Phaser.Game(conf)