Commit e6f3b9d1 authored by liujiangnan's avatar liujiangnan

feat: 适配

parent f9ade646
......@@ -1034,14 +1034,14 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0.48,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-25.600000000000023,
0,
0,
0,
......@@ -6807,8 +6807,8 @@
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_originalWidth": 1058.88,
"_originalHeight": 469.62,
"_id": "c87OiuHMRI7YOL5SUoikbx"
},
{
......
......@@ -73,6 +73,9 @@ cc.Class({
onLoad() {
this.preloadCount = 0;
this.loadedCount = 0;
const ui = cc.find('middleLayer/ui');
;
ui.scale = Math.min(1, cc.view.getFrameSize().width/ui.width, cc.view.getFrameSize().height/ui.height);
initAir(this);
// this.preloadAll();
},
......
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