UNPKG

bp-prism-game

Version:
48 lines (47 loc) 927 B
import { GameService } from './game.service'; /** * The text service */ export declare class TextService { private gameService; private ctx; /** * The score */ private scoreClass; /** * The high score */ private highScoreClass; /** * The level */ private levelClass; /** * The level score */ private levelScoreClass; /** * The constructor */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D); /** * Initialize the text */ animate(): void; /** * Set the Score number * @param points The points to set */ setScore(points: number): void; /** * Set the high Score * @param points The points to set */ setHighScore(points: number): void; /** * Set the level * @param level The level to set */ setLevel(level: number): void; }