UNPKG

blaze-2d

Version:

A fast and simple WebGL 2 2D game engine written in TypeScript

16 lines (15 loc) 440 B
export interface BuildAndBreakOptions { buildDelay: number; breakDelay: number; canBreak: () => boolean; canBuild: () => boolean; } /** * Creates a block picking handler which has allows for building and breaking blocks. * * Useful for a minecraft like game. * * @param blz The {@link Blaze} instance the handler will be used in * @param opts The build and break options to use * @returns A block picking handler */