Skip to content

Commit

Permalink
Merge branch 'main' into fix/update-fish-pond-tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie authored Nov 25, 2024
2 parents 0085520 + f441660 commit 8f93658
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
4 changes: 2 additions & 2 deletions blog/2024-03-05-pixi-v8-launches.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ We're incredibly proud of PixiJS v8 and eager to share the improvements and new

## 🔗 Quick links
- The new Docs for v8 can be found [here](https://pixijs.download/v8.0.0/docs/index.html)
- [Migration](8.x/guides/migrations/v8)
- [Examples](8.x/examples)
- [Migration](https://pixijs.com/8.x/guides/migrations/v8)
- [Examples](https://pixijs.com/8.x/examples)
- [Open Games](https://github.com/pixijs/open-games)

---
Expand Down
10 changes: 5 additions & 5 deletions docs/pixi-version.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"versionLabel": "v8.x",
"version": "8.5.0",
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.5.0",
"build": "https://pixijs.download/v8.5.0/pixi.min.js",
"docs": "https://pixijs.download/v8.5.0/docs/index.html",
"npm": "8.5.0",
"version": "8.5.1",
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.5.1",
"build": "https://pixijs.download/v8.5.1/pixi.min.js",
"docs": "https://pixijs.download/v8.5.1/docs/index.html",
"npm": "8.5.1",
"prerelease": false,
"latest": true
}
7 changes: 7 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'survey',
// eslint-disable-next-line max-len
content: `<a style="font-weight: bold"target="_blank" rel="noopener noreferrer" href="https://app.formbricks.com/s/cm2vojaba0003mqjcwdvxxztj">Help shape the future of PixiJS – Take our first-ever community survey!</a>`,
backgroundColor: '#E72264',
textColor: '#fff',
},
navbar: {
logo: {
alt: 'PixiJS',
Expand Down
10 changes: 5 additions & 5 deletions pixi-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
},
{
"versionLabel": "v8.x",
"version": "8.5.0",
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.5.0",
"build": "https://pixijs.download/v8.5.0/pixi.min.js",
"docs": "https://pixijs.download/v8.5.0/docs/index.html",
"npm": "8.5.0",
"version": "8.5.1",
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.5.1",
"build": "https://pixijs.download/v8.5.1/pixi.min.js",
"docs": "https://pixijs.download/v8.5.1/docs/index.html",
"npm": "8.5.1",
"prerelease": false,
"latest": true,
"isCurrent": true
Expand Down
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 8f93658

Please sign in to comment.