UNPKG

@tdurtschi/bug

Version:

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

12 lines (11 loc) 395 B
import Entity from "./entities/entity"; import { IEntityManager } from "./entity-manager"; export default class EntityUpdater { private entityManager; frame: number; constructor(entityManager: IEntityManager); update(): void; updateAllEntities(): void; private getCollisions; } export declare const isPointInsideEntity: (entity: Entity, x: number, y: number) => boolean;