Skip to content

Commit

Permalink
docs: fix typo and add semicolons for tutorial (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlin1228 authored Nov 25, 2024
1 parent 5f9f26d commit f441660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tutorials/v8.0.0/gettingStarted/step1-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We will be using an asynchronous immediately invoked function expression ([IIFE]

## Application Setup

Let's create the application and initialize it within the the IIFE before appending the its canvas to the DOM. If you came from PixiJS v7 or below, the key differences to pay attention to is that application options are now passed in as an object parameter to the `init` call, and that it is asynchronous which should be awaited before proceeding to use the application.
Let's create the application and initialize it within the IIFE before appending its canvas to the DOM. If you came from PixiJS v7 or below, the key differences to pay attention to is that application options are now passed in as an object parameter to the `init` call, and that it is asynchronous which should be awaited before proceeding to use the application.

```javascript
const app = new Application();
Expand Down
6 changes: 3 additions & 3 deletions src/tutorials/v8.0.0/gettingStarted/step2-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ app.stage.addChild(bunny);
Now let's set the Sprite's anchor and position it so that it's bang on at the center.

```javascript
bunny.anchor.set(0.5)
bunny.anchor.set(0.5);

bunny.x = app.screen.width / 2
bunny.y = app.screen.height / 2
bunny.x = app.screen.width / 2;
bunny.y = app.screen.height / 2;
```

0 comments on commit f441660

Please sign in to comment.