@fustaro/ticker
v1.0.0
Published
simple ticker / looper
Downloads
19
Readme
@fustaro/ticker
Simple ticker / looper
import { Ticker, Tickable } from '@fustaro/ticker';
const intervalMs = 150;
const ticker = new Ticker(intervalMs, false);
const tickable: Tickable = {
tick: (deltaTimeMillis) => {
console.log(`Hello every ${intervalMs}ms!`);
}
}
ticker.addTickable(tickable);
ticker.start();