diff --git a/src/examples/v8.0.0/basic/cacheAsTexture.js b/src/examples/v8.0.0/basic/cacheAsTexture.js index 17a526675..5bc049e28 100644 --- a/src/examples/v8.0.0/basic/cacheAsTexture.js +++ b/src/examples/v8.0.0/basic/cacheAsTexture.js @@ -1,6 +1,6 @@ import { Application, Assets, Container, Sprite } from 'pixi.js'; -async () => +(async () => { // Create a new application const app = new Application(); @@ -72,4 +72,4 @@ async () => alienContainer.scale.y = Math.sin(count); alienContainer.rotation += 0.01; }); -}; +})(); diff --git a/src/examples/v8.0.0/index.ts b/src/examples/v8.0.0/index.ts index 9e067dfe4..e508bd4ae 100644 --- a/src/examples/v8.0.0/index.ts +++ b/src/examples/v8.0.0/index.ts @@ -25,6 +25,7 @@ import meshPlane from '!!raw-loader!./basic/meshPlane.js'; import tinting from '!!raw-loader!./basic/tinting.js'; import transparentBackground from '!!raw-loader!./basic/transparentBackground.js'; import renderGroup from '!!raw-loader!./basic/renderGroup.js'; +import cacheAsTexture from '!!raw-loader!./basic/cacheAsTexture.js'; import click from '!!raw-loader!./events/click.js'; import customHitarea from '!!raw-loader!./events/customHitarea.js'; @@ -131,6 +132,7 @@ const examplesSource: ExamplesSourceType = { tinting, transparentBackground, renderGroup, + cacheAsTexture, }, sprite: { animatedSpriteAnimationSpeed,