bp-space-invaders
Version:
The BP Space Invaders Game
53 lines (52 loc) • 1.69 kB
TypeScript
import { ElementRef, OnInit } from '@angular/core';
import { GameService } from '../service/game.service';
import { GameCookieService } from '../service/game-cookie.service';
import * as i0 from "@angular/core";
export declare class GameboardComponent implements OnInit {
private gameCookieService;
private gameService;
private isDisplayGrid;
canvas: ElementRef<HTMLCanvasElement>;
private ctx;
private requestId;
private points;
private highScore;
levelDisplay: string;
gameLevel: number;
private isGameOver;
private creepSpeedLevel;
private creepSpeed;
private creepLevel;
private isGamePaused;
gameStarted: boolean;
private lives;
private textService;
private invasionService;
private moonService;
private moonDefenseService;
private spaceshipService;
private projectileService;
constructor(gameCookieService: GameCookieService, gameService: GameService);
ngOnInit(): void;
private calculateScore;
private setGameBoard;
private splat;
private evaluateDamage;
private startAllAnimation;
private animate;
private lifeLost;
gameOver(isReset?: boolean): void;
draw(): void;
private handleEventListeners;
keyDownEvent(event: KeyboardEvent): void;
keyUpEvent(event: KeyboardEvent): void;
play(): void;
private newLevelSetup;
private removeWeapons;
private nextLevel;
resetGame(): void;
private pauseGame;
pause(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<GameboardComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GameboardComponent, "bp-gameboard", never, {}, {}, never, never, false, never>;
}