UNPKG

win-destroyer-ts

Version:

A modern recreation of the timeless Desktop Destroyer game developed by Ing. Miroslav Nemecek, written in TypeScript.

26 lines (25 loc) 576 B
import { Coordinates2D } from '../types'; export interface WeaponObject { name: string; sfx: string[]; sprites: { cursor: string; particles: string[]; staticParticles: string[]; }; } export interface Sprite { spawn: Function; spriteRenderer: HTMLDivElement; viewFrame: HTMLDivElement; } export interface Game { parent: { clientWidth: number; }; mousePos: Coordinates2D; particleLayer: HTMLDivElement; drawingCTX: CanvasRenderingContext2D | null; pageHealth: number; onDamage: Function; }