Commit e6f3b9d1 authored by liujiangnan's avatar liujiangnan

feat: 适配

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