Skip to content

Commit

Permalink
Update step4-content.md (#154)
Browse files Browse the repository at this point in the history
Co-authored-by: Zyie <[email protected]>
  • Loading branch information
browsermage and Zyie authored Jan 29, 2025
1 parent 92b78f5 commit 20ca02b
Showing 1 changed file with 3 additions and 3 deletions.
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;
}
});
```
```

0 comments on commit 20ca02b

Please sign in to comment.