From 4fdddb89c6d9fb9eaa0f6a0cc429343c7828ce81 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Wed, 4 Dec 2024 22:41:30 -0600 Subject: [PATCH] fix: visual goToScene tests --- sandbox/tests/router/index.ts | 6 +++--- sandbox/tests/scene-input/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sandbox/tests/router/index.ts b/sandbox/tests/router/index.ts index b713691d5..2c708856a 100644 --- a/sandbox/tests/router/index.ts +++ b/sandbox/tests/router/index.ts @@ -113,7 +113,7 @@ scene2.onPreLoad = (loader) => { }; scene1.onActivate = () => { setTimeout(() => { - gameWithTransitions.goto('scene2'); + gameWithTransitions.goToScene('scene2'); }, 1000); }; scene2.add( @@ -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, diff --git a/sandbox/tests/scene-input/index.ts b/sandbox/tests/scene-input/index.ts index 5482a2b26..bc58552aa 100644 --- a/sandbox/tests/scene-input/index.ts +++ b/sandbox/tests/scene-input/index.ts @@ -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'); } });