import PictureManager from "../player/PictureManager" ;
import Base from "../base/Base" ;
export default class ScreenView extends Base {
constructor(x = 0, y = 0, width = GameGlobal.WIDTH, height = GameGlobal.HEIGHT) {
super ()
this .showPicNum = 1
this.oringY = y this.width = width this.autoWidth = GameGlobal.WIDTH - this.autoX(2 * this.oringX) this.height = this.autoWidth + this.autoY(50) this.pictures = GameGlobal.showUserList //获取照片数 //一直createCanvas会在安卓上导致崩溃 this.screenCanvas = wx.createCanvas() this.screenCanvas.width = GameGlobal.WIDTH this.screenCanvas.height = GameGlobal.HEIGHT this.pageCtx = this.screenCanvas.getContext('2d') GameGlobal.currentCanvas = this.screenCanvas GameG
|