|
|
пре 1 месец | |
|---|---|---|
| .. | ||
| dist | пре 1 месец | |
| LICENSE | пре 1 месец | |
| README.md | пре 1 месец | |
| global.d.ts | пре 1 месец | |
| index.d.ts | пре 1 месец | |
| package.json | пре 1 месец | |
npm install @pixi/ticker
Create a Ticker object directly:
import { Ticker } from '@pixi/ticker';
const ticker = new Ticker();
ticker.start();
Use as an Application plugin:
import { TickerPlugin } from '@pixi/ticker';
import { Application } from '@pixi/app';
import { extensions } from '@pixi/core';
extensions.add(TickerPlugin);
const app = new Application();
app.ticker.start();