Skip to content

Commit b9de77c

Browse files
committed
demo: Final fixes
1 parent ace6470 commit b9de77c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

demo/js/house.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@
147147
that.openSafe.visible = true;
148148
that.yarnBallNotifAppear = true;
149149
}, that);
150+
151+
// Options in the backpack reset the screen so they will remove all the
152+
// things done by gameEndanimation like droping down popup and all
153+
// so we remove the backpack towards the end of the game.
154+
that.add.tween(that.backpackButton.scale).to({ x: 0, y: 0 }, 600,
155+
Phaser.Easing.Sinusoidal.InOut, true);
156+
that.input.keyboard.removeKey(Phaser.Keyboard.ALT);
150157
}
151158

152159
};

demo/js/langPref.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
that.button4Callback, that, 3, 0, 2);
196196
that.button4.addChild(that.add.text(25, 48, that.options.langSelectionPhrases.de));
197197
that.button4.onInputOver.add(that.messageSpeechDe, that);
198+
199+
// One time we have run changeSelectionDown so that as soon as message appear focus
200+
// automatically moves to the first message buuble.
201+
that.changeSelectionDown();
198202
};
199203

200204
// Actions to be performed on pressing TAB

0 commit comments

Comments
 (0)