Skip to content

shizhanglu4345/phaser3-weixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickstart

main.js

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)



About

phaser3适配微信小游戏

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published