UNPKG

@tdurtschi/bug

Version:

Bug is a simulation that models a weevil walking around in an HTML canvas.

15 lines (14 loc) 402 B
import { UIEntity } from "../../ui-entity"; import Bug from "../../../entities/bug/bug"; export default class BugUI implements UIEntity { id: number; bug: Bug; imageIdx: number; static images: HTMLImageElement[]; randomOffset: number; frame: number; constructor(id: number, bug: Bug); getImage(): HTMLImageElement; update(): void; private static getBugImages; }