@meganetaaan/mouse-follower
Version:
TypeScript library for creating animated sprites that smoothly follow mouse cursor or other targets using physics-based movement
10 lines • 390 B
TypeScript
import type { Frame } from "./animation.js";
import type { SpriteDirection } from "./types.js";
export declare class Canvas {
#private;
constructor(width: number, height: number);
render(sprite: HTMLImageElement, frame: Frame, x: number, y: number, direction: SpriteDirection): void;
clear(): void;
getElement(): HTMLCanvasElement;
}
//# sourceMappingURL=canvas.d.ts.map