Commit 6540ab3b authored by 智慧's avatar 智慧

feat:等比例缩放摩天轮和骨骼动画

parent 18950d67
......@@ -149,11 +149,12 @@ cc.Class({
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
bgNode.scale = this._mapScaleMin;
},
initPic() {
const ferrisWheelBg = cc.find('Canvas/bg/ferris_wheel_bg');
ferrisWheelBg.scale = this._mapScaleMin;
},
initIcon() {
......@@ -171,6 +172,7 @@ cc.Class({
async showDragon() {
const nodeName = 'Canvas/' + 'Greetings';
const animationNode = cc.find(nodeName);
animationNode.scale = this._mapScaleMin;
await asyncTweenTo(animationNode, 0.5, { x: 0 });
},
// update (dt) {},
......
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