From a916a7296c1d39f29f17aafe8acb95e6b3721781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Browsermage=F0=9F=A7=99=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=F0=9F=92=AB?= Date: Thu, 9 Jan 2025 18:59:54 +0100 Subject: [PATCH] Update step4-content.md The createMountainGroup function is missing the value 'app' argument, which is required for successful compilation. Without this addition, attempting to build or run the project results in a compilation error. --- src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md b/src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md index 107687068..eb137ef12 100644 --- a/src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md +++ b/src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md @@ -71,8 +71,8 @@ return graphics; With the `createMountainGroup()` helper function, we can then create 2 instances of the mountain group and offset one of them off the screen to the right. ```javascript -const group1 = createMountainGroup(); -const group2 = createMountainGroup(); +const group1 = createMountainGroup(app); +const group2 = createMountainGroup(app); group2.x = app.screen.width; app.stage.addChild(group1, group2); @@ -101,4 +101,4 @@ app.ticker.add((time) => group2.x += app.screen.width * 2; } }); -``` \ No newline at end of file +```