添加一个根据变量x而生成y的圆轨迹demo

This commit is contained in:
leo
2018-09-21 00:52:11 +08:00
parent 4ba8343604
commit f41f71ebab
24 changed files with 25043 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
},
// defaults, set visually when attaching this script to the Canvas
text: 'Hello, World!'
},
// use this for initialization
onLoad: function () {
this.label.string = this.text;
},
// called every frame
update: function (dt) {
},
});