Skip to content

Commit

Permalink
fix: visual goToScene tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 5, 2024
1 parent 37950bc commit 4fdddb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sandbox/tests/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ scene2.onPreLoad = (loader) => {
};
scene1.onActivate = () => {
setTimeout(() => {
gameWithTransitions.goto('scene2');
gameWithTransitions.goToScene('scene2');
}, 1000);
};
scene2.add(
Expand All @@ -137,12 +137,12 @@ boot.addResource(image3);
boot.addResource(image4);
boot.addResource(sword);
gameWithTransitions.input.keyboard.on('press', (evt) => {
gameWithTransitions.goto('scene3', {
gameWithTransitions.goToScene('scene3', {
sceneActivationData: { data: 1 }
});
});
gameWithTransitions.input.pointers.primary.on('down', () => {
gameWithTransitions.goto('scene1');
gameWithTransitions.goToScene('scene1');
});
var startTransition = new ex.FadeInOut({
duration: 3500,
Expand Down
2 changes: 1 addition & 1 deletion sandbox/tests/scene-input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ engineWithInput.input.pointers.on('down', () => {

engineWithInput.input.keyboard.on('press', (e) => {
if (e.key === ex.Keys.Space) {
engineWithInput.currentSceneName === 'scene1' ? engineWithInput.goto('scene2') : engineWithInput.goto('scene1');
engineWithInput.currentSceneName === 'scene1' ? engineWithInput.goToScene('scene2') : engineWithInput.goToScene('scene1');
}
});

Expand Down

0 comments on commit 4fdddb8

Please sign in to comment.