[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
2

Configure Feed

Select the types of activity you want to include in your feed.

docs: Update scene-crossfade.ts example (#3467)

* Change game.goto to game.goToScene
* Example now compiles and runs correctly

authored by

Eugene Medynskiy and committed by
GitHub
(Jul 6, 2025, 1:43 PM -0500) b2cdda07 7eb5239d

+2 -2
+2 -2
site/docs/02-fundamentals/examples/scene-crossfade.ts
··· 40 40 }); 41 41 42 42 game.input.pointers.primary.on('down', () => { 43 - game.currentSceneName === 'scene2' ? game.goto('scene1') : game.goto('scene2'); 43 + game.currentSceneName === 'scene2' ? game.goToScene('scene1') : game.goToScene('scene2'); 44 44 }); 45 45 46 - game.start('scene2'); 46 + game.start('scene2');