Commit 46605339 authored by huangwenjie's avatar huangwenjie

修复

parent ddd08f47
{
"editor.snippetSuggestions": "bottom",
"editor.suggest.snippetsPreventQuickSuggestions": false
}
\ No newline at end of file
...@@ -8,7 +8,8 @@ let build = new DBGBuild(config); ...@@ -8,7 +8,8 @@ let build = new DBGBuild(config);
if (cmd === 'build' && process.argv[3] === 'prod') { if (cmd === 'build' && process.argv[3] === 'prod') {
// if (cmd === 'build' && remain[1] === 'prod') { // if (cmd === 'build' && remain[1] === 'prod') {
cmd = 'buildProd'; // cmd = 'buildProd';
cmd = 'notinypng';
if (process.argv[4] === 'ts') if (process.argv[4] === 'ts')
cmd = 'buildProdTS'; cmd = 'buildProdTS';
if (process.argv[4] === 'exml') if (process.argv[4] === 'exml')
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<script src="libs/downloadApp.js"></script> <script src="libs/downloadApp.js"></script>
<script> <script>
// 游戏速度 1-10 默认5 // 游戏速度 1-10 默认5
window["speed"] = 2; window["speed"] = 5;
// 难度比率 // 难度比率
window['speedRate'] = 0.5; window['speedRate'] = 0.5;
// 赚积分链接 // 赚积分链接
......
...@@ -24,8 +24,8 @@ class TuiaAutoUpload { ...@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this; var _this = this;
this.client = new OSS({ this.client = new OSS({
region: 'oss-cn-hangzhou', region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIqO2wblIxQvwc', accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
accessKeySecret: '4brsaSRbRpjxw3oDIxJi6bNMcndIR6', accessKeySecret: 'NZk1NtT9J5HFaAolNbtQdzTzLLvLYm',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba' bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
}); });
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), { this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
......
...@@ -191,6 +191,7 @@ export default class PlayScene extends Scene { ...@@ -191,6 +191,7 @@ export default class PlayScene extends Scene {
this.removeEventListener(egret.TouchEvent.TOUCH_CANCEL, this.onEnd_guideEle, this); this.removeEventListener(egret.TouchEvent.TOUCH_CANCEL, this.onEnd_guideEle, this);
this.removeEventListener(egret.TouchEvent.TOUCH_END, this.onEnd_guideEle, this); this.removeEventListener(egret.TouchEvent.TOUCH_END, this.onEnd_guideEle, this);
if (this.guideTarget) { if (this.guideTarget) {
this.guideTarget.scaling = true
egret.Tween.get(this.guideTarget) egret.Tween.get(this.guideTarget)
.to({ scaleX: 0, scaleY: 0 }, 200) .to({ scaleX: 0, scaleY: 0 }, 200)
.call(() => { .call(() => {
...@@ -549,10 +550,13 @@ export default class PlayScene extends Scene { ...@@ -549,10 +550,13 @@ export default class PlayScene extends Scene {
this.currTarget = null; this.currTarget = null;
}) })
} else { } else {
this.currTargetBase.parent.scaleX = 0; if(this.currTargetBase.parent){
this.currTargetBase.parent.scaleY = 0; this.currTargetBase.parent.scaleX = 0;
egret.Tween.get(this.currTargetBase.parent) this.currTargetBase.parent.scaleY = 0;
.to({ scaleX: 1, scaleY: 1 }, 200) egret.Tween.get(this.currTargetBase.parent)
.to({ scaleX: 1, scaleY: 1 }, 200)
}
this.currTargetBase.visible = true; this.currTargetBase.visible = true;
egret.Tween.get(this.currTarget) egret.Tween.get(this.currTarget)
.to({ scaleX: 0, scaleY: 0 }, 200) .to({ scaleX: 0, scaleY: 0 }, 200)
...@@ -583,10 +587,12 @@ export default class PlayScene extends Scene { ...@@ -583,10 +587,12 @@ export default class PlayScene extends Scene {
} }
anwserWrong() { anwserWrong() {
this.currTargetBase.parent.scaleX = 0; if(this.currTargetBase.parent){
this.currTargetBase.parent.scaleY = 0; this.currTargetBase.parent.scaleX = 0;
egret.Tween.get(this.currTargetBase.parent) this.currTargetBase.parent.scaleY = 0;
.to({ scaleX: 1, scaleY: 1 }, 200) egret.Tween.get(this.currTargetBase.parent)
.to({ scaleX: 1, scaleY: 1 }, 200)
}
this.currTargetBase.visible = true; this.currTargetBase.visible = true;
this.currGamePool.forEach(garbage => { this.currGamePool.forEach(garbage => {
......
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