UNPKG

bp-prism-game

Version:
36 lines (35 loc) 834 B
import { GameService } from '../../service/game.service'; import { SceneryClass } from '../scenery.class'; /** * The Lava Class */ export declare class LavaClass extends SceneryClass { /** * The animation position */ private animationXPosition; /** * The animation position */ private animationYPosition; /** * Constructor * @param gameService The GameService * @param ctx The ctx * @param guid The guid of the alien */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number); /** * Load the Lava Images */ private loadLavaImages; /** * Draw everything necessary */ protected draw(): void; /** * Animate the lava * @param now the current time */ animate(now?: number): void; }