UNPKG

bp-prism-game

Version:
52 lines (51 loc) 1.11 kB
import { GameService } from '../../service/game.service'; import { IAsset } from '../../interface/asset.interface'; import { AssetClass } from '../../asset/asset.class'; /** * The Path Class */ export declare class PathClass extends AssetClass { /** * The alien moves for debug */ private allMoves; /** * The path image */ private pathImage; /** * the path direction image */ /** * The position counter */ private positionCounter; /** * Constructor * @param gameService The GameService * @param ctx The ctx */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D); /** * Load the Path Images */ private loadPathImages; /** * Set the path * * @param moves All the moves of the path */ setPath(moves: IAsset[]): void; /** * Draw everything necessary */ protected drawPath(): void; /** * Draw the Path Direction */ /** * Animate the Level * @param now the current time */ animate(now?: number): void; }