
Cocos creator
南风11111
这个作者很懒,什么都没留下…
展开
-
cocos creator播放动画
添加音效和实现“跳一跳”效果cc.Class({ extends: cc.Component, properties: { fontNode: cc.Node, font: cc.Label, btn: cc.Button, animal: cc.Sprite, }, onLoad() { this.number = 0; this.isPlaying = false; this.anim = this.animal.getComp原创 2021-05-10 18:05:40 · 2000 阅读 · 2 评论 -
Cocos creator对象池的使用
game.jscc.Class({ extends: cc.Component, properties: { // 背景1 bg_1: cc.Node, // 背景2 bg_2: cc.Node, // 游戏开始界面 gameReady: cc.Node, // 游戏进行界面 gamePlaying: cc.Node, // 游戏暂停 gamePause: cc.Node, // 飞机组件 hero:原创 2021-05-09 21:08:12 · 815 阅读 · 0 评论