import Phaser from './libs/phaser.min.js'
import HelloWorldScene from './HelloWorldScene'
let { windowWidth, windowHeight } = wx.getSystemInfoSync()
const config = {
type: Phaser.CANVAS,
parent: 'app',
canvas:canvas,
width: windowWidth,
height: windowHeight,
physics: {
default: 'arcade',
arcade: {
gravity: { y: 200 },
},
},
scene: [HelloWorldScene],
}
new Phaser.Game(config)
-
Notifications
You must be signed in to change notification settings - Fork 5
shizhanglu4345/phaser3-weixin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
phaser3适配微信小游戏
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published