UNPKG

bp-space-invaders

Version:
15 lines (14 loc) 545 B
import { GameService } from './game.service'; import { BoundarySetupModel } from '../model/boundary-set.model'; export declare class TextService { private gameService; private ctx; private scoreClass; private highScoreClass; private isDisplayed; constructor(gameService: GameService, ctx: CanvasRenderingContext2D, boundary: BoundarySetupModel); animate(): void; setScore(points: number): void; setHighScore(points: number): void; displayText(text: string, fontColor: string, leftOffset: number): void; }