0.3.7 • Published 4 years ago
bp-prism-game v0.3.7
Prism
This is a fun "alien creep" game in angular 8.
How To Install
npm install bp-prism-game
How To Import
In your app.module.ts file.
There are two variables:
isDebug: <true|false> In Production this should be run as "false" addExtraScenery: <true|false> If true, the game will add extra scenery to fill in paths
The game will not work without these parameters
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { PrismModule } from 'bp-prism-game';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    PrismModule.forRoot({
      isDebug: false,
      addExtraScenery: true
    } as any)
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}How To Display
In your app.component.html file
<bp-prism-game></bp-prism-game>