UNPKG

bp-prism-game

Version:
70 lines (69 loc) 1.37 kB
import { GameService } from './game.service'; /** * The scenery service */ export declare class SceneryService { private gameService; private ctx; /** * The scenery */ private scenery; /** * The current level */ private currentLevel; /** * The constructor */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D); /** * Add all the scenery * * @param level The current level */ addScenery(level: number): void; /** * Find any unused scenery */ private findUnusedScenery; /** * Add the water scenery * * @param waterLocation The water location */ private addWater; /** * Add the slime scenery * * @param slimeLocation The slime location */ private addSlime; /** * Add the grass scenery * * @param grassLocation The grass location */ private addGrass; /** * Add the rock scenery * * @param rockLocation The rock location */ private addRock; /** * Add the lava scenery * * @param lavaLocation The lava location */ private addLava; /** * Add the tree scenery * @param treeLocation The tree location */ private addTree; /** * Initialize the scenery */ animate(): void; }