UNPKG

@maximeij/css-brickout

Version:

Classic Brickout Game Engine implemented in Typescript and rendered with CSS. No dependencies.

11 lines (10 loc) 302 B
import { GameObject, PartialGameObjectConfig } from './GameObject'; type Config = PartialGameObjectConfig & { onClick: () => void; }; export declare class Clickable extends GameObject { onClick: () => void; constructor({ x, y, onClick, ...rest }: Config); destroy(): void; } export {};