Commit 936987c5 authored by liujiangnan's avatar liujiangnan

debug

parent aef9c0ea
......@@ -337,6 +337,9 @@ export default class NewClass extends middleLayerBase {
const apple = cc.find('middleLayer/coolcat/apple');
apple.active = true;
apple.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(res);
const sx = 200 / apple.width;
const sy = 200 / apple.height;
apple.scale = Math.min(sx, sy);
cc.tween(apple)
.set({ scale: 0 })
.to(0.5, { scale: 1 }, { easing: 'backOut' })
......
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