UNPKG

@tdurtschi/bug

Version:

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

11 lines (10 loc) 227 B
import Victor from "victor"; export default interface Entity extends EntityState { id: number; update: (input: any) => any; updateSpeed: number; } export interface EntityState { pos: Victor; size: Victor; }