Commit 7cea778d authored by rockyl's avatar rockyl

轮训判断2或者4都为成功

parent 94e07989
{
"currentScene": "assets/scenes/main.scene",
"dependencies": {
"animation/Zoom": "1.0.0",
"animation/Translation": "1.0.0",
"renderer/HtmlRenderer": "1.0.0",
"ui/ScrollView": "1.0.0",
"ui/Button": "1.0.0",
"animation/TouchZoom": "1.0.0",
"animation/Fade": "1.0.0",
"animation/Wave": "1.0.0",
"other/RelativeLayout": "1.0.0",
"other/FullStageSize": "1.0.0",
"other/CameraController": "1.0.0",
"renderer/TextureRenderer": "1.0.0",
"renderer/RectRenderer": "1.0.0",
"renderer/FrameAnimationRenderer": "1.0.0",
"renderer/TextRenderer": "1.0.0",
"renderer/LineRenderer": "1.0.0",
"renderer/CircleRenderer": "1.0.0",
"base/TouchInterrupt": "1.0.0",
"base/InteractComponent": "1.0.0",
"renderer/GraphicRenderer": "1.0.0",
"base/Transform": "1.0.3",
"base/ScillaComponent": "1.0.0",
"renderer/Renderer": "1.0.0"
}
}
\ No newline at end of file
{"currentScene":"assets/scenes/main.scene","dependencies":{"animation/Zoom":"1.0.0","animation/Translation":"1.0.0","renderer/HtmlRenderer":"1.0.0","ui/ScrollView":"1.0.0","ui/Button":"1.0.0","animation/TouchZoom":"1.0.0","animation/Fade":"1.0.0","animation/Wave":"1.0.0","other/RelativeLayout":"1.0.0","other/FullStageSize":"1.0.0","other/CameraController":"1.0.0","renderer/TextureRenderer":"1.0.0","renderer/RectRenderer":"1.0.0","renderer/FrameAnimationRenderer":"1.0.0","renderer/TextRenderer":"1.0.0","renderer/LineRenderer":"1.0.0","renderer/CircleRenderer":"1.0.0","base/TouchInterrupt":"1.0.0","base/InteractComponent":"1.0.0","renderer/GraphicRenderer":"1.0.0","base/Transform":"1.0.3","base/ScillaComponent":"1.0.0","renderer/Renderer":"1.0.0"}}
\ No newline at end of file
/**
* Created by rockyl on 2019-04-18.
*
* 抖动
*/
import ScillaComponent from "components/base/ScillaComponent";
import {createTween} from "scilla";
export default class Animation extends ScillaComponent {
onCreate() {
super.onCreate();
}
onAwake() {
super.onAwake();
createTween(this, this.transform, true, {fields: ['x', 'y']})
.to({
position: {x: 100, y: 100},
scale: {x: 2, y: 3},
rotation: 270
}, 1000)
}
onUpdate(t) {
super.onUpdate(t);
}
onSleep() {
super.onSleep();
}
onDestroy() {
super.onDestroy();
}
}
{"ver":"1.0.1","uuid":"5f2419c1-237c-4901-92ce-4079420063dc","subMetas":{},"type":"script"}
......@@ -14,7 +14,6 @@
},
"dependencies": {
"scilla": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core#dev",
"scilla-components": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components#dev",
"scilla-launcher": "git+http://gitlab2.dui88.com/laoqifeng/scilla-launcher#dev"
},
"devDependencies": {}
......
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