摘要: 从 2021 年 8 月 13 日开始,在 GitHub.com 上执行 Git 操作时,不再接受以账户密码的形式完成身份验证,改用token $ git clone https://github.com/username/repo.git Username: your_username Passw 阅读全文
posted @ 2021-09-14 23:57 gao1996 阅读(357) 评论(0) 推荐(0)
摘要: 主要思路就是禁用当前的collider void OnTriggerEnter2D(Collider2D col) { if (col.tag == "cherry") { col.gameObject.GetComponent<BoxCollider2D>().enabled = false; D 阅读全文
posted @ 2021-09-14 21:57 gao1996 阅读(1853) 评论(0) 推荐(0)
摘要: 1,加载播放背景音乐 cc.SimpleAudioEngine:getInstance():playMusic("Music/bgMusic.mp3", true) ture表示循环播放 false则相反 2,停止背景音乐 cc.SimpleAudioEngine:getInstance():sto 阅读全文
posted @ 2020-04-16 21:55 gao1996 阅读(370) 评论(0) 推荐(0)
摘要: 【Cocos2dx 3.3 Lua】定时器事件 Cocos2dx 3.x Lua 中使用定时器有两种方式: (1)self:scheduleUpdateWithPriorityLua(update, priority) > 参数一:刷新函数 > 参数二:刷新优先级 其中 self 为 Node类 的 阅读全文
posted @ 2020-04-10 22:55 gao1996 阅读(1014) 评论(0) 推荐(0)