Skip to content

Commit

Permalink
fix cache as texture example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Nov 27, 2024
1 parent 2408343 commit e2db017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examples/v8.0.0/basic/cacheAsTexture.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Application, Assets, Container, Sprite } from 'pixi.js';

async () =>
(async () =>
{
// Create a new application
const app = new Application();
Expand Down Expand Up @@ -72,4 +72,4 @@ async () =>
alienContainer.scale.y = Math.sin(count);
alienContainer.rotation += 0.01;
});
};
})();
2 changes: 2 additions & 0 deletions src/examples/v8.0.0/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -131,6 +132,7 @@ const examplesSource: ExamplesSourceType = {
tinting,
transparentBackground,
renderGroup,
cacheAsTexture,
},
sprite: {
animatedSpriteAnimationSpeed,
Expand Down

0 comments on commit e2db017

Please sign in to comment.