bp-prism-game
Version:
The BP Prism Game
48 lines (47 loc) • 1.01 kB
TypeScript
import { GameService } from '../../service/game.service';
import { SceneryClass } from '../scenery.class';
/**
* The Slime Class
*/
export declare class SlimeClass extends SceneryClass {
/**
* The slime Image
*/
private slimeImage;
/**
* The slime Ground Image
*/
private slimeGroundImage;
/**
* Slime Scale
*/
private slimeScale;
/**
* Slime Max
*/
private slimeMax;
/**
* Constructor
* @param gameService The GameService
* @param ctx The ctx
* @param guid The guid of the alien
*/
constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number);
/**
* Load the Slime Images
*/
private loadSlimeImages;
/**
* Draw the slime ground
*/
private drawSlimeGround;
/**
* Draw the alien tractor beam
*/
private drawSlime;
/**
* Animate the alien
* @param now the current time
*/
animate(now?: number): void;
}