bp-prism-game
Version:
The BP Prism Game
45 lines (44 loc) • 1.03 kB
TypeScript
import { GameService } from '../../service/game.service';
import { AssetClass } from '../../asset/asset.class';
/**
* The Prism Blast Class
*/
export declare class PrismBlastClass extends AssetClass {
/**
* The asset to animate
*/
private assetAnimation;
/**
* Asset Animations
*/
private assetAnimations;
/**
* The angle of the blast
*/
private angle;
/**
* Constructor
* @param gameService The GameService
* @param ctx The ctx
* @param guid The guid of the prism blast
*/
constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number);
/**
* Draw everything necessary
*/
protected draw(): void;
/**
* Set the Blast Angle
* @param angle The angle of the blast
*/
setBlastAngle(angle: number): void;
/**
* Draw the base
*/
private drawPrismBlast;
/**
* Animate the prism blast
* @param now the current time
*/
animate(now?: number): void;
}