Commit 644d33da authored by wildfirecode13's avatar wildfirecode13

1

parent 91b98b80
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"guideText": { "guideText": {
"alias": "引导文本", "alias": "引导文本",
"type": "string", "type": "string",
"default": "点击屏幕跳跃躲避飞来的钞票" "default": "点击屏幕中的小公主跳跃躲避飞来的城堡"
}, },
"guideFlagKey": { "guideFlagKey": {
"alias": "引导标识名", "alias": "引导标识名",
......
...@@ -27,7 +27,7 @@ export class GuideLayer extends engine.Container { ...@@ -27,7 +27,7 @@ export class GuideLayer extends engine.Container {
let guideHole = new engine.Image(getTextureByName('引导遮罩')); let guideHole = new engine.Image(getTextureByName('引导遮罩'));
guideHole.x = (width - guideHole.width) / 2; guideHole.x = (width - guideHole.width) / 2;
guideHole.y = options.y; guideHole.y = options.y-100;
guideMask.addChild(guideHole); guideMask.addChild(guideHole);
this.createRect(guideMask, 0, 0, width, guideHole.y); this.createRect(guideMask, 0, 0, width, guideHole.y);
......
...@@ -114,10 +114,15 @@ export default class Player extends engine.Container { ...@@ -114,10 +114,15 @@ export default class Player extends engine.Container {
playReady() { playReady() {
return new Promise(resolve => { return new Promise(resolve => {
this.switchAni('Ready', 1); this.switchAni('Ready', 1);
this._currentAni.once(engine.Event.END_FRAME, function () { setTimeout(() => {
this.switchAni('Ready2', 1, true, true); this.switchAni('Ready2', 1, true, true);
resolve(); resolve();
}, this); }, 200);
// this.switchAni('Ready', 1);
// this._currentAni.once(engine.Event.END_FRAME, function () {
// this.switchAni('Ready2', 1, true, true);
// resolve();
// }, this);
}) })
} }
......
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