接着上篇往下
1、相机跟随人物及设置相机边界问题
1 | this.cameras.main.startFollow(this.player);//相机跟随 |
2、场景转换
具体实现如下1 | playBtn.setInteractive(); |
值得注意的是,在配置文件中需要在场景里加入
1 | const config = { |
接着上篇往下
1 | this.cameras.main.startFollow(this.player);//相机跟随 |
1 | playBtn.setInteractive(); |
值得注意的是,在配置文件中需要在场景里加入
1 | const config = { |