Commit eb55c6a5 authored by chenli's avatar chenli

注释

parent 995eb636
......@@ -41,6 +41,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initIcon();
}
test(){
//移动端才有的方法调试的需要真机,浏览器没有
window["courseware"].startTest("aa bb cc");
window["courseware"].stopTest((res) => {
console.log(res);
});
}
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
......
......@@ -41,8 +41,8 @@ export class MyCocosSceneComponent extends cc.Component {
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;//其他
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;//背景
cc.director['_scene'].width = frameSize.width;
cc.director['_scene'].height = frameSize.height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment