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

docs: fix typo and add semicolons for tutorial #137

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
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
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;
```
Loading