win-destroyer-ts
Version:
A modern recreation of the timeless Desktop Destroyer game developed by Ing. Miroslav Nemecek, written in TypeScript.
22 lines (21 loc) • 692 B
TypeScript
import { Coordinates2D, Dimensions2D } from './types';
import { Howl } from 'howler';
export declare class Particle {
soundEffect: Howl;
spriteRenderer: HTMLDivElement;
viewFrame: HTMLDivElement;
parentWidth: number;
sprites: {
animated: string;
static: string;
};
constructor(parentWidth: number, dimensions: Dimensions2D, coords: Coordinates2D, offset: Coordinates2D, sound: string, sprites: {
animated: string;
static: string;
});
getStereoLocation(coords: Coordinates2D): number;
getAnimatedContent(): HTMLDivElement;
getStaticContent(): HTMLImageElement;
playSoundEffect(): void;
}
export default Particle;