UNPKG

@tdurtschi/bug

Version:

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

11 lines (10 loc) 311 B
import Plant, { PlantState } from "./plant"; export default class PlantFactory { private generateId; private width; private plantPosCursor; constructor(generateId: () => number, width: number); build(initialState?: Partial<PlantState>): Plant; private getNextPos; private randomX; }