Commit 71739925 authored by liujiangnan's avatar liujiangnan

debug

parent 936987c5
...@@ -339,10 +339,11 @@ export default class NewClass extends middleLayerBase { ...@@ -339,10 +339,11 @@ export default class NewClass extends middleLayerBase {
apple.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(res); apple.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(res);
const sx = 200 / apple.width; const sx = 200 / apple.width;
const sy = 200 / apple.height; const sy = 200 / apple.height;
apple.scale = Math.min(sx, sy); const sl = Math.min(sx, sy);
apple.scale = sl;
cc.tween(apple) cc.tween(apple)
.set({ scale: 0 }) .set({ scale: 0 })
.to(0.5, { scale: 1 }, { easing: 'backOut' }) .to(0.5, { scale: sl }, { easing: 'backOut' })
.to(0.1, { angle: 20 }) .to(0.1, { angle: 20 })
.to(0.2, { angle: -20 }) .to(0.2, { angle: -20 })
.to(0.1, { angle: 0 }) .to(0.1, { angle: 0 })
......
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