Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update step4-content.md #154

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tutorials/v8.0.0/chooChooTrain/step4/step4-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -101,4 +101,4 @@ app.ticker.add((time) =>
group2.x += app.screen.width * 2;
}
});
```
```